in Operating System
1,232 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?
in Operating System
by
1.2k views

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.

 

by

Related questions