Re: [algogeeks] os question

2012-12-10 Thread Navin Kumar
If virtualization is concerned, then answer would be choice d. Since its not necessary to load complete process in memory. On Sat, Dec 8, 2012 at 12:45 AM, sahil gupta wrote: > It's b. > Windows follow this Operation. > > > On Fri, Dec 7, 2012 at 4:21 AM, manish wrote: > >> Four processes of 1

Re: [algogeeks] os question

2012-12-10 Thread sahil gupta
It's b. Windows follow this Operation. On Fri, Dec 7, 2012 at 4:21 AM, manish wrote: > Four processes of 1gb,1.2gb,2gb,2gb are there and RAM available is 2gb. > We have a > time shared system. Which of the following is the most appropriate > scheduling algorithm? > a. all processes are loaded s

[algogeeks] os question

2012-12-06 Thread manish
Four processes of 1gb,1.2gb,2gb,2gb are there and RAM available is 2gb. We have a time shared system. Which of the following is the most appropriate scheduling algorithm? a. all processes are loaded sequentially 1 by 1 b. load one process at a time and execute processes in RR fashion c. load 1gb

[algogeeks] OS and Networking group

2012-11-22 Thread V K Pandey
Hi All, Please suggest any one, group or forums related to Operating System and Network like algogeeks. Thanks Vivek P --

Re: [algogeeks] OS question..

2012-11-05 Thread Prabagaran Thangavel
@manish Q1. Paging has various advantages. 1. Increase the process address space to 4 GB (assuming 32 bit address and data bus) even if physical memory is less than 4 GB. 2. Provides Security through Virtual Memory. Each process has its own physical address space and cannot interfere wit

Re: [algogeeks] OS question..

2012-11-04 Thread Hanlei Qin
I think the answer to Q1 may "Yes". Cause the virtual memory of program is limited, they need logically contiguous memory, and have limit from OS and processor(32-bit, or 64-bit) yet. I have no idea about Q2. On Mon, Nov 5, 2012 at 4:30 AM, manish wrote: > Q1. If we have infinite memory, then d

[algogeeks] OS question..

2012-11-04 Thread manish
Q1. If we have infinite memory, then do we still be needing paging? Q2. Given only 8bits registers, you have to find average of 4 bit registers values without using any operation involving 16 bit calculations. -- You received this message because you are subscribed to the Google Groups "Algori

Re: [algogeeks] OS question

2012-01-25 Thread UTKARSH SRIVASTAV
can't get :( On Wed, Jan 25, 2012 at 5:19 PM, Rahul wrote: > Google search this > 6.033 > You will get the basics of processor mode of execution > and rings of execution > Hope I got the question ! > On Wed, Jan 25, 2012 at 4:21 PM, UTKARSH SRIVASTAV < > usrivastav...@gmail.com> wrote: > >> I ha

Re: [algogeeks] OS question

2012-01-25 Thread Rahul
Google search this 6.033 You will get the basics of processor mode of execution and rings of execution Hope I got the question ! On Wed, Jan 25, 2012 at 4:21 PM, UTKARSH SRIVASTAV wrote: > I have a doubt when each process has it's own separate page table then why > is there s system wide page tabl

[algogeeks] OS question

2012-01-25 Thread UTKARSH SRIVASTAV
I have a doubt when each process has it's own separate page table then why is there s system wide page table required ? Also if Page table is such that it maps virtual address to a physical address then I think two process may map to same physical address because all process have same virtual addre

Re: [algogeeks] os ques about paging

2011-09-24 Thread aditya kumar
m sry i dint read the question properly page no = vitual page % 3 ie 0 % 3 = 3 thrfre 3*1024 is starting addr of physical page but the byte address will be 3*1024 + 512 = 3584 On Sun, Sep 25, 2011 at 10:12 AM, Vishnu Ganth wrote: > 3584 > > > On Sun, Sep 25, 2011 at 9:53 AM, sivaviknesh s wrote:

Re: [algogeeks] os ques about paging

2011-09-24 Thread aditya kumar
c) 512 On Sun, Sep 25, 2011 at 9:53 AM, sivaviknesh s wrote: > > > > Consider a virtual memory system in which the virtual page addresses are > mapped onto physical page addresses as follow > Virtual page address.. Physical page address > 0.

Re: [algogeeks] os ques about paging

2011-09-24 Thread Vishnu Ganth
3584 On Sun, Sep 25, 2011 at 9:53 AM, sivaviknesh s wrote: > > > > Consider a virtual memory system in which the virtual page addresses are > mapped onto physical page addresses as follow > Virtual page address.. Physical page address > 0...

[algogeeks] os ques about paging

2011-09-24 Thread sivaviknesh s
Consider a virtual memory system in which the virtual page addresses are mapped onto physical page addresses as follow Virtual page address.. Physical page address 03 1...

Re: [algogeeks] OS

2011-09-14 Thread mohan kumar
http://www.tenouk.com/WinVirtualAddressSpace.html go to this link. think it will help you... i On Wed, Sep 14, 2011 at 7:48 PM, teja bala wrote: > can any one tell the difference between ADDRESS SPACE and VIRTUAL > ADDRESS SPACE? > > thx in advance. > > -- > You received this message be

Re: [algogeeks] OS

2011-09-14 Thread Anup Ghatage
Address Space: The total addresses taken up by a process is known as a process's address space On Wed, Sep 14, 2011 at 7:48 PM, teja bala wrote: > can any one tell the difference between ADDRESS SPACE and VIRTUAL > ADDRESS SPACE? > > thx in advance. > > -- > You received this message because

[algogeeks] OS

2011-09-14 Thread teja bala
can any one tell the difference between ADDRESS SPACE and VIRTUAL ADDRESS SPACE? thx in advance. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this g

Re: [algogeeks] os

2011-09-08 Thread sharmila saru
4 On Wed, Sep 7, 2011 at 9:09 PM, Mohit Goel wrote: > How many processes are created in this snippet? > Main() > { > Fork(); > Fork() && fork () || fork (); > Fork (); > } > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to th

Re: [algogeeks] os

2011-09-07 Thread Mohit Goel
thnks everyone... -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit

Re: [algogeeks] os

2011-09-07 Thread Rashmi Jain
its 19...as 19 prcses are created On Wed, Sep 7, 2011 at 11:21 PM, Mohit Goel wrote: > 20 is not in option ..so whats the answer?? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@go

Re: [algogeeks] os

2011-09-07 Thread Kamakshii Aggarwal
@mohit:answer is 19.one is the parent process originally.and 19 more processes have been created. On Wed, Sep 7, 2011 at 11:21 PM, Mohit Goel wrote: > 20 is not in option ..so whats the answer?? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm G

Re: [algogeeks] os

2011-09-07 Thread Mohit Goel
20 is not in option ..so whats the answer?? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups

Re: [algogeeks] os

2011-09-07 Thread rahul vatsa
int main() { fork(); fork() && fork() || fork(); fork(); return 0; } ln 1 : will create 2 prs ln 2 : will create 10 process for each existing pr ln 3 : will do fork for all 10 process, nd so now u ve 20 prs the main issue is @ln-2 in main( ) Ln 2 : here for 1st fork, if its parent

Re: [algogeeks] os

2011-09-07 Thread Dheeraj Sharma
ups...19 i guess On Wed, Sep 7, 2011 at 9:52 PM, Dheeraj Sharma wrote: > wats the ans... 21?? > > > On Wed, Sep 7, 2011 at 9:42 PM, vivek goel wrote: > >> can anyone explain me how?? plsss >> >> >> On Wed, Sep 7, 2011 at 9:40 PM, rahul vatsa wrote: >> >>> 19 prs will be cr

Re: [algogeeks] os

2011-09-07 Thread Dheeraj Sharma
wats the ans... 21?? On Wed, Sep 7, 2011 at 9:42 PM, vivek goel wrote: > can anyone explain me how?? plsss > > > On Wed, Sep 7, 2011 at 9:40 PM, rahul vatsa wrote: > >> 19 prs will be created, total 20 prs. >> we have discussed this a few days back. plz check the old thr

Re: [algogeeks] os

2011-09-07 Thread vivek goel
can anyone explain me how?? plsss On Wed, Sep 7, 2011 at 9:40 PM, rahul vatsa wrote: > 19 prs will be created, total 20 prs. > we have discussed this a few days back. plz check the old thread for any > explanation. > > > On Wed, Sep 7, 2011 at 12:01 PM, Mohit Goel wrote:

Re: [algogeeks] os

2011-09-07 Thread rahul vatsa
19 prs will be created, total 20 prs. we have discussed this a few days back. plz check the old thread for any explanation. On Wed, Sep 7, 2011 at 12:01 PM, Mohit Goel wrote: > a. 15 > b. 19 > c. 21 > d. 27 > e. 31 > these are the only options. > > -- > You received this message because

Re: [algogeeks] os

2011-09-07 Thread Mohit Goel
a. 15 b. 19 c. 21 d. 27 e. 31 these are the only options. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubs

Re: [algogeeks] os

2011-09-07 Thread vivek goel
hey is it 4 child processes along wid one parent process.?? m i rite?? On Wed, Sep 7, 2011 at 9:09 PM, Mohit Goel wrote: > How many processes are created in this snippet? > Main() > { > Fork(); > Fork() && fork () || fork (); > Fork (); > } > > -- > You received this

[algogeeks] os

2011-09-07 Thread Mohit Goel
How many processes are created in this snippet? Main() { Fork(); Fork() && fork () || fork (); Fork (); } -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from thi

Re: [algogeeks] os

2011-08-14 Thread Ankur Khurana
@roy : yes , kind of , i didnt know the exact technical term for it. Not exactly PCB but process can maintain a lookup table for all the shared variable and there corresposing threads . or for every thread the shared variable. or ,may be in the thread itself, you can have a linked list pointer whic

Re: [algogeeks] os

2011-08-14 Thread aalam roy
@ankur i think you are talking about cleanup handlers. these are the functions which are executed when a thread terminates. but can you give any hint how it can be accomplished using process control block. On Sun, Aug 14, 2011 at 2:15 PM, Kamakshii Aggarwal wrote: > @ankur::nahi samajh aaya..:( >

Re: [algogeeks] os

2011-08-14 Thread Kamakshii Aggarwal
@ankur::nahi samajh aaya..:( On Sun, Aug 14, 2011 at 9:46 AM, Ankur Khurana wrote: > My 2 cents, > When the termination signal is sent to the thread either synchronously or > asynchronously , you just have a mechanism in place that if that thread is > in critical section , it exits from there and

Re: [algogeeks] os

2011-08-13 Thread Ankur Khurana
My 2 cents, When the termination signal is sent to the thread either synchronously or asynchronously , you just have a mechanism in place that if that thread is in critical section , it exits from there and and unlocks the mutex at point of exit. This can be done by associating a tokken with the

Re: [algogeeks] os

2011-08-13 Thread sagar pareek
You can make a routine check for mutex On Sat, Aug 13, 2011 at 7:56 PM, Kamakshii Aggarwal wrote: > > How do you make sure to unlock a mutex which was locked in a thread that > dies/terminates? > -- > Regards, > Kamakshi > kamakshi...@gmail.com > > -- > You received this message because you are s

[algogeeks] os

2011-08-13 Thread Kamakshii Aggarwal
How do you make sure to unlock a mutex which was locked in a thread that dies/terminates? -- Regards, Kamakshi kamakshi...@gmail.com -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.

Re: [algogeeks] os

2011-08-11 Thread rajeev bharshetty
Round Robin .. On Thu, Aug 11, 2011 at 11:01 AM, siddharam suresh wrote: > shortest preemptive job first > Thank you, > Siddharam > > > > On Thu, Aug 11, 2011 at 10:49 AM, krishna meena < > krishna.meena...@gmail.com> wrote: > >> Consider a set of n teaks with known runtimes r1,r2,r3rn to b

Re: [algogeeks] os

2011-08-10 Thread siddharam suresh
shortest preemptive job first Thank you, Siddharam On Thu, Aug 11, 2011 at 10:49 AM, krishna meena wrote: > Consider a set of n teaks with known runtimes r1,r2,r3rn to be > run on a uni-processor machine. which processor scheduling algorithm > will result in the maximum throughput? > > --

[algogeeks] os

2011-08-10 Thread krishna meena
Consider a set of n teaks with known runtimes r1,r2,r3rn to be run on a uni-processor machine. which processor scheduling algorithm will result in the maximum throughput? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this gr

[algogeeks] Os/processor dependencies of object file(C compiled file)

2011-08-10 Thread mithun bs
Hi, I know that the compiled code of a C file(after assembler converts assembly code to opcode) cannot be run on a different OS or it cannot be run on a different processor architecture. So, I need to know what are the machine dependencies which are added in object file. One thing is the opcode

Re: [algogeeks] os

2011-08-09 Thread *$*
shared memory is fastest IPC mechanism , because , it is a simple memory allocation on physical memory , in case of other options like pipes etc , they requires kernel entries .. Thx, --Gopi On Tue, Aug 9, 2011 at 11:00 PM, Varun Jakhoria wrote: > @Raghvendhra +1 ... because it doesn't require e

Re: [algogeeks] os

2011-08-09 Thread Varun Jakhoria
@Raghvendhra +1 ... because it doesn't require entry at kernel On Tue, Aug 9, 2011 at 10:55 PM, raghavendhra rahul wrote: > Shared memory is fastest IPC mechanism, since it doesn’t involve any system > call as it is done in user space. > -- > > Regards > Raghavendhra > > > > "changing the face" c

Re: [algogeeks] os

2011-08-09 Thread raghavendhra rahul
Shared memory is fastest IPC mechanism, since it doesn’t involve any system call as it is done in user space. -- Regards Raghavendhra "changing the face" can change nothing .. but "facing the change" can change everything -- You received this message because you are subscribed to the Google

Re: [algogeeks] os

2011-08-08 Thread sagar pareek
Named pipes are just like pipes which is global for every process and each one can access them so u can say that named pipes are shared global pipes and i think they are fastest. pipes works in queue fashion On Mon, Aug 8, 2011 at 6:13 PM, Gaurav Menghani wrote: > I would rather not discuss n

Re: [algogeeks] os

2011-08-08 Thread Gaurav Menghani
I would rather not discuss non-algorithm questions on this group :) On Mon, Aug 8, 2011 at 6:02 PM, dilip makwana wrote: > Thanx for correction ... :D > > On 8 August 2011 17:50, dilip makwana wrote: >> >> Yes NAMED PIPES ... is correct >> >> On 8 August 2011 17:43, Himanshu Srivastava >> wrote

Re: [algogeeks] os

2011-08-08 Thread dilip makwana
Thanx for correction ... :D On 8 August 2011 17:50, dilip makwana wrote: > Yes NAMED PIPES ... is correct > > > On 8 August 2011 17:43, Himanshu Srivastava wrote: > >> named pipes!!! >> >> On Mon, Aug 8, 2011 at 5:36 PM, Kamakshii Aggarwal > > wrote: >> >>> >>> Fastest IPC mechanism is >>> >>>

Re: [algogeeks] os

2011-08-08 Thread Kamakshii Aggarwal
According to me,it should be shared memory..but i have taken this from an online test which say that the answer is named pipeswhat are named pipes? On Mon, Aug 8, 2011 at 5:50 PM, dilip makwana wrote: > Yes NAMED PIPES ... is correct > > > On 8 August 2011 17:43, Himanshu Srivastava wrote: > >

Re: [algogeeks] os

2011-08-08 Thread dilip makwana
Yes NAMED PIPES ... is correct On 8 August 2011 17:43, Himanshu Srivastava wrote: > named pipes!!! > > On Mon, Aug 8, 2011 at 5:36 PM, Kamakshii Aggarwal > wrote: > >> >> Fastest IPC mechanism is >> >>1. ?shared memory >>2. ?pipes >>3. ?named pipes >>4. ?S

Re: [algogeeks] os

2011-08-08 Thread Himanshu Srivastava
*shared memory is the fastest IPC mechanism Because we need not copy some data from one place to another.* On Mon, Aug 8, 2011 at 5:36 PM, Kamakshii Aggarwal wrote: > > Fastest IPC mechanism is > >1. ?shared memory >2. ?pipes >3. ?named pipes >4. ?Semaphore

Re: [algogeeks] os

2011-08-08 Thread Aditya Virmani
shared memory On Mon, Aug 8, 2011 at 5:43 PM, Himanshu Srivastava < himanshusri...@gmail.com> wrote: > named pipes!!! > > On Mon, Aug 8, 2011 at 5:36 PM, Kamakshii Aggarwal > wrote: > >> >> Fastest IPC mechanism is >> >>1. ?shared memory >>2. ?pipes >>3. ?named pipe

Re: [algogeeks] os

2011-08-08 Thread sachin sharma
http://en.wikipedia.org/wiki/Shared_memory -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com.

Re: [algogeeks] os

2011-08-08 Thread Himanshu Srivastava
named pipes!!! On Mon, Aug 8, 2011 at 5:36 PM, Kamakshii Aggarwal wrote: > > Fastest IPC mechanism is > >1. ?shared memory >2. ?pipes >3. ?named pipes >4. ?Semaphores > > -- > Regards, > Kamakshi > kamakshi...@gmail.com > > -- > You received this message be

Re: [algogeeks] os

2011-08-08 Thread sachin sharma
Shared Memory... On Mon, Aug 8, 2011 at 5:36 PM, Kamakshii Aggarwal wrote: > > Fastest IPC mechanism is > >1. ?shared memory >2. ?pipes >3. ?named pipes >4. ?Semaphores > > -- > Regards, > Kamakshi > kamakshi...@gmail.com > > -- > You received this message

[algogeeks] os

2011-08-08 Thread Kamakshii Aggarwal
Fastest IPC mechanism is 1. ?shared memory 2. ?pipes 3. ?named pipes 4. ?Semaphores -- Regards, Kamakshi kamakshi...@gmail.com -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send

Re: [algogeeks] OS question

2011-08-04 Thread ankit sambyal
Thnks Azhar :) got the point -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more opti

Re: [algogeeks] OS question

2011-08-04 Thread Azhar Hussain
The *exec* family of functions shall replace the current process image with a new process image. It does not matter how many threads you have whole process gets replaced with new one. - Azhar. On Thu, Aug 4, 2011 at 8:27 PM, ankit sambyal wrote: > What happens when a thread calls exec ?? What h

Re: [algogeeks] OS question

2011-08-04 Thread Azhar Hussain
To elaborate more. New process image will not have the existing threads and user defined data declared in current process will be wiped out. Parent can do is to wait for the child status by calling wait(). for example main() { pid = fork(); if (child) { exec("ls"); /// he

Re: [algogeeks] OS question

2011-08-04 Thread Poised~
Good point. Let me search a bit on Threads. Will get back asap. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/7pWIqcdwugcJ. To post to this group, send em

Re: [algogeeks] OS question

2011-08-04 Thread ankit sambyal
@Dipankar: But all the threads of a process share code and data section. So, how is it possible that they are not affected ??? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To

Re: [algogeeks] OS question

2011-08-04 Thread Dipankar Patro
I think the answer would be the thread calling execute will have to wait for the executed command to exit and then it will proceed. As for other threads, they shouldn't be affected. Please do correct me if it is wrong. On 4 August 2011 20:27, ankit sambyal wrote: > What happens when a thread ca

[algogeeks] OS question

2011-08-04 Thread ankit sambyal
What happens when a thread calls exec ?? What happens to the other threads of the same process ?? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group,

[algogeeks] OS book

2011-07-08 Thread zero_cool
Hey coders if anybody has Operating Systems, by William Stallings please mail me as early as you can. my e-mail:brajkishoresa...@gmail.com -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge

Re: [algogeeks] OS

2011-06-27 Thread Navneet Gupta
One such resource http://placementsindia.blogspot.com/search/label/Operating%20Systems On Mon, Jun 27, 2011 at 2:01 PM, Nishant Mittal wrote: > plz recommend me some good sites for OS interview questions... > Thanx in advance > > -- > You received this message because you are subscribed to th

[algogeeks] OS

2011-06-27 Thread Nishant Mittal
plz recommend me some good sites for OS interview questions... Thanx in advance -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to

Re: [algogeeks] os

2011-06-22 Thread Abhishek Sharma
@rahul: buddy, u can ignore the mail if u don't want to answer (no offense). Lets not discourage someone from asking questions... On Tue, Jun 21, 2011 at 11:23 PM, rahul wrote: > If u want us to solve the GATE paper, please attach the paper, we will post > the solution. > > regards. > > > On Tue

Re: [algogeeks] OS

2011-06-22 Thread sachin sharma
@Rahul Threads within a process share the same virtual memory space but each has a separate stack, and possibly "thread-local storage". this thread local storage is register and other private data. They are *lightweight* because a context switch is simply a case of switching the stack pointer and

Re: [algogeeks] OS

2011-06-22 Thread Shachindra A C
last year's gate question? On Tue, Jun 21, 2011 at 11:32 PM, Akshata Sharma wrote: > But, the OS maintains a separate PC (program counter ),stack and A CPU > register state for a thread . So option A I am not sure is correct, it says > ONLY.. > scheduling and accounting information is stored for

Re: [algogeeks] OS

2011-06-21 Thread Akshata Sharma
But, the OS maintains a separate PC (program counter ),stack and A CPU register state for a thread . So option A I am not sure is correct, it says ONLY.. scheduling and accounting information is stored for a process right? Can you please explain why C is not correct and D is correct? On Tue, Jun 2

Re: [algogeeks] os

2011-06-21 Thread rahul
If u want us to solve the GATE paper, please attach the paper, we will post the solution. regards. On Tue, Jun 21, 2011 at 11:21 PM, Akshata Sharma wrote: > The atomic fetch-and-set x, y instruction unconditionally sets the memory > location x to 1 and fetches the old value of x n y without allo

[algogeeks] os

2011-06-21 Thread Akshata Sharma
The atomic fetch-and-set x, y instruction unconditionally sets the memory location x to 1 and fetches the old value of x n y without allowing any intervening access to the memory location x. consider the following implementation of P and V functions on a binary semaphore S. void P (binary_semaphor

Re: [algogeeks] OS

2011-06-21 Thread rahul
A, D On Tue, Jun 21, 2011 at 11:16 PM, Akshata Sharma wrote: > A thread is usually defined as a ‘light weight process’ because an > operating system (OS) maintains smaller data structures for a thread than > for a process. In relation to this, which of the followings is TRUE? > (A) On per-thread

[algogeeks] OS

2011-06-21 Thread Akshata Sharma
A thread is usually defined as a ‘light weight process’ because an operating system (OS) maintains smaller data structures for a thread than for a process. In relation to this, which of the followings is TRUE? (A) On per-thread basis, the OS maintains only CPU register state (B) The OS does not ma

Re: [algogeeks] OS

2011-06-19 Thread Wladimir Tavares
If the operation (want = false) is not atomic, we can not mutual exclusion.Certo? Wladimir Araujo Tavares *Federal University of Ceará * On Sun, Jun 19, 2011 at 11:01 AM, Wladimir Tavares wrote: > One of two process can be in starvation! > > Wladimir Araujo Tavares > *Federal University of C

Re: [algogeeks] OS

2011-06-19 Thread Wladimir Tavares
One of two process can be in starvation! Wladimir Araujo Tavares *Federal University of Ceará * On Sun, Jun 19, 2011 at 10:49 AM, sanjay ahuja wrote: > where does it ensure that if P1 has first executed critical section > then it will get chance to execute critical section only after P2 has

Re: [algogeeks] OS

2011-06-19 Thread sanjay ahuja
where does it ensure that if P1 has first executed critical section then it will get chance to execute critical section only after P2 has executed critical section once. If it is strict alternation then it is ensuring bounded waiting! On Sun, Jun 19, 2011 at 7:01 PM, Akshata Sharma wrote: > Why

Re: [algogeeks] OS

2011-06-19 Thread Akshata Sharma
Why is C not true? On Sun, Jun 19, 2011 at 6:31 PM, sanjay ahuja wrote: > B and D are true > > > On Sun, Jun 19, 2011 at 5:43 PM, Nishant Mittal > wrote: > > It does not prevent deadlock so i think (D) is definitely true. > > > > On Sun, Jun 19, 2011 at 5:15 PM, Akshata Sharma < > akshatasharm..

Re: [algogeeks] OS

2011-06-19 Thread sanjay ahuja
B and D are true On Sun, Jun 19, 2011 at 5:43 PM, Nishant Mittal wrote: > It does not prevent deadlock so i think (D) is definitely true. > > On Sun, Jun 19, 2011 at 5:15 PM, Akshata Sharma > wrote: >> >> Two processes, P1 and P2, need to access a critical section of code. >> Consider the follo

Re: [algogeeks] OS

2011-06-19 Thread Nishant Mittal
It does *not* prevent deadlock so i think (D) is definitely true. On Sun, Jun 19, 2011 at 5:15 PM, Akshata Sharma wrote: > Two processes, P1 and P2, need to access a critical section of code. > Consider the following synchronization construct used by the processes: > > /* P1 */ > while (true) { >

[algogeeks] OS

2011-06-19 Thread Akshata Sharma
Two processes, P1 and P2, need to access a critical section of code. Consider the following synchronization construct used by the processes: /* P1 */ while (true) { wants1 = true; while (wants2==true); /* Critical Section */ wants1=false; } /* Remainder section */ /* P2 */ while (true)

Re: [algogeeks] OS galvin sol..

2011-01-23 Thread LALIT SHARMA
i don have... On Fri, Jan 21, 2011 at 10:25 PM, rahul rai wrote: > can u give me sipser solution mannual? > > > On 1/21/11, Sreeprasad Govindankutty wrote: > > Thanks so much > > > > On Wed, Jan 19, 2011 at 4:20 AM, jayapriya surendran > > wrote: > > > >> wow..thank you so much > >> > >> >

Re: [algogeeks] OS galvin sol..

2011-01-21 Thread rahul rai
can u give me sipser solution mannual? On 1/21/11, Sreeprasad Govindankutty wrote: > Thanks so much > > On Wed, Jan 19, 2011 at 4:20 AM, jayapriya surendran > wrote: > >> wow..thank you so much >> >> >> On Wed, Jan 19, 2011 at 2:08 PM, LALIT SHARMA wrote: >> >>> >>> >>> -- >>> Lalit Kishore Sha

Re: [algogeeks] OS galvin sol..

2011-01-21 Thread LALIT SHARMA
My Pleasure !! On Fri, Jan 21, 2011 at 11:22 PM, Anand wrote: > It's really good. Thanks a lot > > > On Fri, Jan 21, 2011 at 8:24 AM, Sreeprasad Govindankutty < > sreeprasad...@gmail.com> wrote: > >> Thanks so much >> >> >> On Wed, Jan 19, 2011 at 4:20 AM, jayapriya surendran > > wrote: >> >>> wo

Re: [algogeeks] OS galvin sol..

2011-01-21 Thread Anand
It's really good. Thanks a lot On Fri, Jan 21, 2011 at 8:24 AM, Sreeprasad Govindankutty < sreeprasad...@gmail.com> wrote: > Thanks so much > > > On Wed, Jan 19, 2011 at 4:20 AM, jayapriya surendran > wrote: > >> wow..thank you so much >> >> >> On Wed, Jan 19, 2011 at 2:08 PM, LALIT SHARMA wrote

Re: [algogeeks] OS galvin sol..

2011-01-21 Thread Sreeprasad Govindankutty
Thanks so much On Wed, Jan 19, 2011 at 4:20 AM, jayapriya surendran wrote: > wow..thank you so much > > > On Wed, Jan 19, 2011 at 2:08 PM, LALIT SHARMA wrote: > >> >> >> -- >> Lalit Kishore Sharma, >> >> IIIT Allahabad (Amethi Capmus), >> 6th Sem. >> >> -- >> You received this message because yo

Re: [algogeeks] OS galvin sol..

2011-01-21 Thread jayapriya surendran
wow..thank you so much On Wed, Jan 19, 2011 at 2:08 PM, LALIT SHARMA wrote: > > > -- > Lalit Kishore Sharma, > > IIIT Allahabad (Amethi Capmus), > 6th Sem. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send

Re: [algogeeks] os problem

2010-07-22 Thread topojoy biswas
But you dont need a swap filesystem right? On Thu, Jul 22, 2010 at 8:41 AM, Anand wrote: > Yes you do need virtual memory even if you have 4GB of RAM. Because if you > do not have virtual memory, you could not have uniform addressing. and that > prevents you creating the final elf file for each

Re: [algogeeks] os problem

2010-07-21 Thread Anand
Yes you do need virtual memory even if you have 4GB of RAM. Because if you do not have virtual memory, you could not have uniform addressing. and that prevents you creating the final elf file for each process. B'cos while compiling the program you don;t know the actual physical address your program

[algogeeks] os problem

2010-07-21 Thread divya
You have 4GB ram, and at any time you have only 2 processes of 10mb each. so do you need any virtual memory for it? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscrib

Re: [algogeeks] OS problems

2010-07-01 Thread Anand
if there are 32 such frames of 8 X 1024 then the logical address will be (10+5)15 as pointed out by Harit. On Thu, Jul 1, 2010 at 8:57 AM, sharad kumar wrote: > i think harit's answer is correct regarding ques 2 plzz someone comment on > this > > -- > You received this message because you are sub

Re: [algogeeks] OS problems

2010-07-01 Thread sharad kumar
i think harit's answer is correct regarding ques 2 plzz someone comment on this -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to al

Re: [algogeeks] OS problems

2010-06-25 Thread Anand
1. Virtual memory depends upon the data lines of the processor if it 32 bit than virtual memory would 2^32. 2. Number of logical address bits would be (2^10= 1024)10. and 8 data bits. On Thu, Jun 24, 2010 at 9:20 PM, harit agarwal wrote: > 1. the virtual memory size depends on the page size t

Re: [algogeeks] OS problems

2010-06-25 Thread harit agarwal
1. the virtual memory size depends on the page size that the system is using... 2. logical address=5+10=15 bits + (some modifying bits if they are present like modified,copied etc..) -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to

[algogeeks] OS problems

2010-06-24 Thread amit
1. If size of the physical memory is 2^32-1, then the size of virtual  memory ?? 2. If the logical memory of 8 X 1024 is mapped into 32 frames, then the number  of bits for the logical address ? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group

Re: [algogeeks] OS problems

2010-06-19 Thread harit agarwal
@amit i think your query is answered by varun..as each process do system call to allocate memory so it is exhausting the memory for all the processesas all processes are having the same interface... @sharad 1.i don't think priviliges affect the user address spaceit tells that in which w

Re: [algogeeks] OS problems

2010-06-19 Thread Varun Nagpal
I think your size of your RAM + Virtual memory(allocated swap space) limits the amount of heap memory available. If while allocating 1 gb, your program fails when it has allocated 800 mb, it means that its simply has exhausted its memory space available. As ram cannot be increased without changing

Re: [algogeeks] OS problems

2010-06-19 Thread Anand
In SMP operating sytem provides spinlock to execute critical section of code that is shared among various processors. Spinlocks keeps every other processors just to spin around and there by prevents them from generating interrupts which could interrupt the processor which is executing the critical

Re: [algogeeks] OS problems

2010-06-19 Thread Amit Jaspal
@ above The heap getting exhausted is with respect to 1 Process only naa. i.e What I am trying to ask is Heap Section of Memory is seperate for all processes or Same? So when u say that heap gets exhausted no more dynamic memory can be allocated by that process or any other process in the system a

Re: [algogeeks] OS problems

2010-06-19 Thread harit agarwal
yes you can allocate 1gb using malloc but it also depends on how much heap size is available to you.. if you try 2gb then more chances are it won't allocate because of heap is exhausted.. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To pos

Re: [algogeeks] OS problems

2010-06-19 Thread sharad kumar
for 1 other reasons apart 4m d 1 told by harit are 1)in every os,a user has maximum space allocated to him according to his previlege so ... may be it is exceeding that maximum capacity 2)it may be possible that it has exceeded total space available to whole os i.e it may be smaller system having m

Re: [algogeeks] OS problems

2010-06-19 Thread Amit Jaspal
@ above I think it is because of the heap size . The Heap corresponding to dynamic memory allocation grows and merges with the stack section of the process. Correct me if I am wrong. And if was only because of calloc() , then will malloc work? Can we allocate 1gb dynamically using malloc()?? O

  1   2   >