Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged descriptive
0
votes
1
answer
931
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.
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 circumstance...
admin
749
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
0
votes
0
answers
932
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?
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...
admin
512
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
multithreaded
descriptive
+
–
0
votes
1
answer
933
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 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?
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 keyboa...
admin
1.3k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
threads
descriptive
+
–
1
votes
0
answers
934
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?
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
374
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
cache-memory
descriptive
+
–
0
votes
1
answer
935
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 deliver a subset of the file's bytes; assume that a ... request specifies the starting and ending bytes of the file. Explain how you might use threads to improve the download time.
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 deliver a subset of th...
admin
881
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
threads
descriptive
+
–
1
votes
2
answers
936
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?
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. ...
admin
2.8k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
0
votes
1
answer
937
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 long will the last one take to complete if they run sequentially? How long if they run in parallel? Assume $50\%$ I/O wait.
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....
admin
2.0k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
0
votes
1
answer
938
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. If the goal is $99\%$ CPU utilization, what is the maximum I/O wait that can be tolerated?
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. If the go...
admin
4.4k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
0
votes
1
answer
939
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?
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
3.9k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
2
votes
1
answer
940
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?
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...
admin
2.0k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
system-call
threads
descriptive
+
–
1
votes
1
answer
941
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?
On all current computers, at least part of the interrupt handlers are written in assembly language. Why?
admin
2.4k
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
interrupts
descriptive
+
–
0
votes
1
answer
942
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.
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 nee...
admin
938
views
admin
asked
Oct 24, 2019
Operating System
tanenbaum
operating-system
process-and-threads
interrupts
descriptive
+
–
0
votes
0
answers
943
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, only four transitions are shown. Are there any circumstances in which either or both of the missing transitions might occur?
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, only four transitions are sho...
admin
255
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
process-and-threads
descriptive
+
–
1
votes
0
answers
944
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 35 (Page No. 83 - 84)
If you have a personal UNIX-like system (Linux, MINIX $3$, FreeBSD, etc.) available that you can safely crash and reboot, write a shell script that attempts to create an unlimited number of child ... system administrator. The consequences will be instantly obvious so you are likely to be caught and sanctions may follow.
If you have a personal UNIX-like system (Linux, MINIX $3$, FreeBSD, etc.) available that you can safely crash and reboot, write a shell script that attempts to create an ...
admin
416
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
shared-system
descriptive
+
–
1
votes
0
answers
945
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 36 (Page No. 84)
Examine and try to interpret the contents of a UNIX-like or Windows directory with a tool like the UNIX od program. (Hint: How you do this will depend upon what the OS allows. One trick that may work is ... with one operating system and then read the raw device data using a different operating system that allows such access.)
Examine and try to interpret the contents of a UNIX-like or Windows directory with a tool like the UNIX od program. (Hint: How you do this will depend upon what the OS al...
admin
359
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
unix
descriptive
+
–
0
votes
0
answers
946
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 34 (Page No. 83)
Write a shell that is similar to Fig. $1-19$ but contains enough code that it actually works so you can test it. You might also add some features such as redirection of input and output, pipes, and background jobs.
Write a shell that is similar to Fig. $1-19$ but contains enough code that it actually works so you can test it. You might also add some features such as redirection of i...
admin
506
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
descriptive
+
–
1
votes
0
answers
947
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 33 (Page No. 83)
Here are some questions for practicing unit conversions: How long is a nanoyear in seconds? Micrometers are often called microns. How long is a megamicron? How many bytes are there in a $1$-PB memory? The mass of the earth is $6000$ yottagrams. What is that in kilograms?
Here are some questions for practicing unit conversions:How long is a nanoyear in seconds?Micrometers are often called microns. How long is a megamicron?How many bytes ar...
admin
355
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
descriptive
+
–
0
votes
0
answers
948
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 32 (Page No. 83)
Virtual machines have become very popular for a variety of reasons. Nevertheless, they have some downsides. Name one.
Virtual machines have become very popular for a variety of reasons. Nevertheless, they have some downsides. Name one.
admin
301
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
virtual-machines
descriptive
+
–
0
votes
0
answers
949
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 31 (Page No. 83)
Explain how separation of policy and mechanism aids in building microkernel-based operating systems.
Explain how separation of policy and mechanism aids in building microkernel-based operating systems.
admin
285
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
descriptive
+
–
1
votes
0
answers
950
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 30 (Page No. 83)
A portable operating system is one that can be ported from one system architecture to another without any modification. Explain why it is infeasible to build an operating system that is completely portable. Describe two high-level layers that you will have in designing an operating system that is highly portable.
A portable operating system is one that can be ported from one system architecture to another without any modification. Explain why it is infeasible to build an operating...
admin
390
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
descriptive
+
–
0
votes
0
answers
951
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 29 (Page No. 83)
Figure $1-23$ shows that a number of UNIX system calls have no Win32 API equivalents. For each of the calls listed as having no Win32 equivalent, what are the consequences for a programmer of converting a UNIX program to run under Windows?
Figure $1-23$ shows that a number of UNIX system calls have no Win32 API equivalents. For each of the calls listed as having no Win32 equivalent, what are the consequence...
admin
654
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
unix
system-call
descriptive
+
–
0
votes
0
answers
952
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 28 (Page No. 83)
To a programmer, a system call looks like any other call to a library procedure. Is it important that a programmer know which library procedures result in system calls? Under what circumstances and why?
To a programmer, a system call looks like any other call to a library procedure. Is it important that a programmer know which library procedures result in system calls? U...
admin
235
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
system-call
descriptive
+
–
0
votes
0
answers
953
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 27 (Page No. 83)
Modern operating systems decouple a process address space from the machine’s physical memory. List two advantages of this design.
Modern operating systems decouple a process address space from the machine’s physical memory. List two advantages of this design.
admin
545
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
memory-management
descriptive
+
–
0
votes
0
answers
954
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 26 (Page No. 83)
In the example given in Fig. $1-17$, the library procedure is called read and the system call itself is called read. Is it essential that both of these have the same name? If not, which one is more important?
In the example given in Fig. $1-17$, the library procedure is called read and the system call itself is called read. Is it essential that both of these have the same name...
admin
295
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
descriptive
+
–
0
votes
1
answer
955
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 25 (Page No. 83)
What is the essential difference between a block special file and a character special file?
What is the essential difference between a block special file and a character special file?
admin
176
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
descriptive
+
–
0
votes
1
answer
956
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 24 (Page No. 83)
Suppose that a $10$-MB file is stored on a disk on the same track (track $50$) in consecutive sectors. The disk arm is currently situated over track number $100$. How long will it take to retrieve this file from the disk? ... the file is stored to rotate under the head. Also, assume that reading occurs at a rate of $200$ MB/s.
Suppose that a $10$-MB file is stored on a disk on the same track (track $50$) in consecutive sectors. The disk arm is currently situated over track number $100$. How lon...
admin
923
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
disk
descriptive
+
–
2
votes
0
answers
957
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 23 (Page No. 82 - 83)
A file whose file descriptor is fd contains the following sequence of bytes$: 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5.$ The following system calls are made: lseek(fd, $3$, SEEK SET); read(fd, &buffer, $4$); where the lseek call makes a seek to byte $3$ of the file. What does buffer contain after the read has completed?
A file whose file descriptor is fd contains the following sequence of bytes$: 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5.$ The following system calls are made:lseek(fd, $3$, SEEK SE...
admin
683
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
system-call
descriptive
+
–
0
votes
0
answers
958
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 22 (Page No. 82)
Can the count = write(fd, buffer, nbytes); call return any value in count other than nbytes? If so, why?
Can thecount = write(fd, buffer, nbytes);call return any value in count other than nbytes? If so, why?
admin
389
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
descriptive
+
–
0
votes
0
answers
959
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 21 (Page No. 82)
What type of multiplexing (time, space, or both) can be used for sharing the following resources: CPU, memory, disk, network card, printer, keyboard, and display?
What type of multiplexing (time, space, or both) can be used for sharing the following resources: CPU, memory, disk, network card, printer, keyboard, and display?
admin
398
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
multiplexing
descriptive
+
–
0
votes
0
answers
960
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 20 (Page No. 82)
For each of the following system calls, give a condition that causes it to fail: fork, exec, and unlink.
For each of the following system calls, give a condition that causes it to fail: fork, exec, and unlink.
admin
253
views
admin
asked
Oct 23, 2019
Operating System
tanenbaum
operating-system
system-call
descriptive
+
–
Page:
« prev
1
...
27
28
29
30
31
32
33
34
35
36
37
...
91
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register