Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged process-and-threads
2.8k
views
1
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 17 (Page No. 175)
In this problem, you are to compare reading a file using a single-threaded file server and a multithreaded server. It takes $12$ msec to get a request for ... /sec can the server handle if it is single threaded? If it is multithreaded?
admin
2.8k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
1.7k
views
1
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 16 (Page No. 175)
Can a thread ever be preempted by a clock interrupt? If so, under what circumstances? If not, why not?
admin
1.7k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
interrupts
descriptive
+
–
1.8k
views
1
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 15 (Page No. 175)
Why would a thread ever voluntarily give up the CPU by calling thread yield? After all, since there is no periodic clock interrupt, it may never get the CPU back.
admin
1.8k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
interrupts
descriptive
+
–
1.3k
views
2
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 14 (Page No. 175)
In Fig. $2-12$ the register set is listed as a per-thread rather than a per-process item. Why? After all, the machine has only one set of registers.
admin
1.3k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
787
views
1
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 13 (Page No. 174)
In the text, we described a multithreaded Web server, showing why it is better than a single-threaded server and a finite-state machine server. Are there any circumstances in which a single-threaded server might be better? Give an example.
admin
787
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
531
views
0
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 12 (Page No. 174)
In Fig. $2-8$, a multithreaded Web server is shown. If the only way to read from a file is the normal blocking read system call, do you think user-level threads or kernel-level threads are being used for the Web server? Why?
admin
531
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
multithreaded
descriptive
+
–
1.4k
views
1
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 11 (Page No. 174)
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 ... one in each process. Does this problem ever occur in single-threaded processes?
admin
1.4k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
threads
descriptive
+
–
388
views
0
answers
1
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 10 (Page No. 174)
In the text it was stated that the model of Fig. $2-11(a)$ was not suited to a file server using a cache in memory. Why not? Could each process have its own cache?
admin
388
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
cache-memory
descriptive
+
–
913
views
1
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 9 (Page No. 174)
Assume that you are trying to download a large $2$-GB file from the Internet. The file is available from a set of mirror servers, each of which can ... bytes of the file. Explain how you might use threads to improve the download time.
admin
913
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
threads
descriptive
+
–
2.9k
views
2
answers
1
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 8 (Page No. 174)
Consider a multiprogrammed system with degree of $6$ (i.e., six programs in memory at the same time). Assume that each process spends $40\%$ of its time waiting for I/O. What will be the CPU utilization?
admin
2.9k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
2.2k
views
1
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 7 (Page No. 174)
Multiple jobs can run in parallel and finish faster than if they had run sequentially. Suppose that two jobs, each needing $20$ minutes of CPU time, start simultaneously. How ... ? How long if they run in parallel? Assume $50\%$ I/O wait.
admin
2.2k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
4.5k
views
1
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 6 (Page No. 174)
A computer has $4$ GB of RAM of which the operating system occupies $512$ MB. The processes are all $256$ MB (for simplicity) and have the same characteristics. ... $99\%$ CPU utilization, what is the maximum I/O wait that can be tolerated?
admin
4.5k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
4.1k
views
1
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 5 (Page No. 174)
A computer system has enough room to hold five programs in its main memory. These programs are idle waiting for I/O half the time. What fraction of the CPU time is wasted?
admin
4.1k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
2.0k
views
1
answers
2
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 4 (Page No. 174)
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. Why?
admin
2.0k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
system-call
threads
descriptive
+
–
2.5k
views
1
answers
1
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 3 (Page No. 174)
On all current computers, at least part of the interrupt handlers are written in assembly language. Why?
admin
2.5k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
interrupts
descriptive
+
–
983
views
1
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 2 (Page No. 174)
Suppose that you were to design an advanced computer architecture that did process switching in hardware, instead of having interrupts. What information would the CPU need? Describe how the hardware process switching might work.
admin
983
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
interrupts
descriptive
+
–
268
views
0
answers
0
votes
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 1 (Page No. 174)
In Fig. $2-2$, three process states are shown. In theory, with three states, there could be six transitions, two out of each state. However, ... Are there any circumstances in which either or both of the missing transitions might occur?
admin
268
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
3.6k
views
2
answers
7
votes
GATE Overflow | Mock GATE | Test 1 | Question: 12
Consider a parent process $P$ that has forked a child process $C$. $C$ has again forked another child process $D$. Now $P$ terminates while $C$ ... $P$ immediately becomes an orphan process, until adopted by its parent
Ruturaj Mohanty
3.6k
views
Ruturaj Mohanty
asked
Dec 27, 2018
Operating System
go-mockgate-1
operating-system
process-and-threads
fork-system-call
+
–
949
views
1
answers
5
votes
Test by Bikram | Mock GATE | Test 1 | Question: 12
Which of the following should be allowed only in Kernel mode? Changing mapping from virtual to physical address Mask and unmask interrupts Disabling all interrupts Reading processor status register ... $(iii)$, $(iv)$, $(v)$ and $(vi)$
Bikram
949
views
Bikram
asked
Jan 16, 2017
GATE
tbb-mockgate-1
process-and-threads
operating-system
+
–
Page:
« prev
1
2
3
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register