1,225 views
0 votes
0 votes
If a multithreaded process forks, a problem occurs if the child gets copies of all the parent’s threads. Suppose that one of the original threads was waiting for keyboard input. Now two threads are waiting for keyboard input, one in each process. Does this problem ever occur in single-threaded processes?

1 Answer

0 votes
0 votes

Answer:

No.  This is due to the reason that the process can not fork if a single-threaded process gets blocked on the keyboard itself.

 

Related questions

2 votes
2 votes
1 answer
2
admin asked Oct 24, 2019
1,915 views
When an interrupt or a system call transfers control to the operating system, a kernel stack area separate from the stack of the interrupted process is generally used. Wh...
0 votes
0 votes
0 answers
3
admin asked Oct 25, 2019
567 views
Consider a system in which it is desired to separate policy and mechanism for the scheduling of kernel threads. Propose a means of achieving this goal.
0 votes
0 votes
1 answer
4
admin asked Oct 24, 2019
570 views
In a system with threads, is there one stack per thread or one stack per process when user-level threads are used? What about when kernel-level threads are used? Explain....