Could you please answer of these questions? Thank you so much! 1. How can a system
Question:
Could you please answer of these questions? Thank you so much!
1. How can a system run multiple processes at the same time? (i.e. concurrently)
2. Why is it desirable for a system to include a medium-term scheduler (also known as a swapper) to suspend and resume processes?
3. What events in the system would trigger a context switch?
4. Why would a system only allow a process to be terminated by its parent process but not any other processes? Why must an orphan process be assigned to a new parent process?
5. Why are threads called lightweight processes as opposed to traditional heavyweight processes?
6. How many unique processes and threads are created in the following program segment?
pid_t pid;
pid = fork();
if (pid == 0)
{
/* child process */
fork();
thread.create(...);
}
else
{
/* parent process */
fork();
thread.create(...);
}
fork();
Business Statistics For Contemporary Decision Making
ISBN: 978-1118749647
8th edition
Authors: Black Ken