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 narayan.shiv...@gmail.com 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 sequentially 1 by 1
 b. load one process at a time and execute processes in RR fashion
 c. load 1gb, 1,2gb first then processes 3 and 4 follow
 d. All processes can be loaded together and CPU time shared among them

 --




-- 




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 sahilgupta...@gmail.comwrote:

 It's b.
 Windows follow this Operation.


 On Fri, Dec 7, 2012 at 4:21 AM, manish narayan.shiv...@gmail.com 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 sequentially 1 by 1
 b. load one process at a time and execute processes in RR fashion
 c. load 1gb, 1,2gb first then processes 3 and 4 follow
 d. All processes can be loaded together and CPU time shared among them

 --




  --




-- 




[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, 1,2gb first then processes 3 and 4 follow
d. All processes can be loaded together and CPU time shared among them

-- 




[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 
Algorithm Geeks group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/iUT57I-DOHoJ.
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



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 narayan.shiv...@gmail.com wrote:
 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
 Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/iUT57I-DOHoJ.
 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 this group at
 http://groups.google.com/group/algogeeks?hl=en.

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



[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
address space

any good link on system wide page table may also solve my problem

-- 
*UTKARSH SRIVASTAV
CSE-3
B-Tech 3rd Year
@MNNIT ALLAHABAD*

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



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
usrivastav...@gmail.comwrote:

 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
 address space

 any good link on system wide page table may also solve my problem

 --
 *UTKARSH SRIVASTAV
 CSE-3
 B-Tech 3rd Year
 @MNNIT ALLAHABAD*


  --
 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 this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] OS question

2012-01-25 Thread UTKARSH SRIVASTAV
can't get :(

On Wed, Jan 25, 2012 at 5:19 PM, Rahul raikra...@gmail.com 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 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
 address space

 any good link on system wide page table may also solve my problem


 --
 *UTKARSH SRIVASTAV
 CSE-3
 B-Tech 3rd Year
 @MNNIT ALLAHABAD*


  --
 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 this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 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 this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
*UTKARSH SRIVASTAV
CSE-3
B-Tech 3rd Year
@MNNIT ALLAHABAD*

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



[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, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



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 ankitsamb...@gmail.com wrote:

 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, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
___

Please do not print this e-mail until urgent requirement. Go Green!!
Save Papers = Save Trees

-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



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 unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



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 email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



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);   /// here 'ls' will replace the child process
no matter how many threads it has
   }
   else // parent
wait for child

}

-
Azhar.

On Thu, Aug 4, 2011 at 9:50 PM, Azhar Hussain azhar...@gmail.com wrote:

 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 ankitsamb...@gmail.comwrote:

 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, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



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 ankitsamb...@gmail.comwrote:

 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, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
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 this group at 
http://groups.google.com/group/algogeeks?hl=en.



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 options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.