Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged descriptive
0
votes
0
answers
1711
Galvin Edition 9 Exercise 5 Question 13 (Page No. 244)
Describe two kernel data structures in which race conditions are possible.Be sure to include a description of how a race condition can occur.
Describe two kernel data structures in which race conditions are possible.Be sure to include a description of how a race condition can occur.
akash.dinkar12
586
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1712
Galvin Edition 9 Exercise 5 Question 12 (Page No. 244)
The Linux kernel has a policy that a process cannot hold a spin lock while attempting to acquire a semaphore. Explain why this policy is in place.
The Linux kernel has a policy that a process cannot hold a spin lock while attempting to acquire a semaphore. Explain why this policy is in place.
akash.dinkar12
358
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1713
Galvin Edition 9 Exercise 5 Question 11 (Page No. 244)
Explain why interrupts are not appropriate for implementing synchronization primitives in multiprocessor systems.
Explain why interrupts are not appropriate for implementing synchronization primitives in multiprocessor systems.
akash.dinkar12
245
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1714
Galvin Edition 9 Exercise 5 Question 10 (Page No. 243)
Explain why implementing synchronization primitives by disabling interrupts is not appropriate in a single-processor system if the synchronization primitives are to be used in user-level programs.
Explain why implementing synchronization primitives by disabling interrupts is not appropriate in a single-processor system if the synchronization primitives are to be us...
akash.dinkar12
512
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
1
votes
1
answer
1715
Galvin Edition 9 Exercise 5 Question 9 (Page No. 243-245)
The first known correct software solution to the critical-section problem for n processes with a lower bound on waiting of n − 1 turns was presented by Eisenberg and McGuire. The processes share the following variables: enum pstate ${idle, want in, in cs}$; ...
The first known correct software solution to the critical-section problem for n processes with a lower bound on waiting of n − 1 turns was presented by Eisenberg and Mc...
akash.dinkar12
2.0k
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1716
Galvin Edition 9 Exercise 5 Question 8 (Page No. 243-244)
The first known correct software solution to the critical-section problem for two processes was developed by Dekker. The two processes, P0 and P1, share the following variables: boolean $flag[2]$; /* initially false */ int turn; The structure of ... * critical section */ turn = j; $flag[i]$ = false; /* remainder section */ } while (true);
The first known correct software solution to the critical-section problem for two processes was developed by Dekker. The two processes, P0 and P1, share the following var...
akash.dinkar12
390
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1717
Galvin Edition 9 Exercise 5 Question 7 (Page No. 243)
Race conditions are possible in many computer systems. Consider a banking system that maintains an account balance with two functions: $deposit(amount)$ and $withdraw(amount)$. These two functions are passed the amount that is to ... . Describe how a race condition is possible and what might be done to prevent the race condition from occurring.
Race conditions are possible in many computer systems. Consider a banking system that maintains an account balance with two functions: $deposit(amount)$ and $withdraw(amo...
akash.dinkar12
719
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
1
answer
1718
Galvin Edition 9 Exercise 5 Question 6 (Page No. 243)
Illustrate how a binary semaphore can be used to implement mutual exclusion among n processes.
Illustrate how a binary semaphore can be used to implement mutual exclusion among n processes.
akash.dinkar12
3.2k
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1719
Galvin Edition 9 Exercise 5 Question 5 (Page No. 243)
Show that, if the $wait()$ and $signal()$ semaphore operations are not executed atomically, then mutual exclusion may be violated.
Show that, if the $wait()$ and $signal()$ semaphore operations are not executed atomically, then mutual exclusion may be violated.
akash.dinkar12
146
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1720
Galvin Edition 9 Exercise 5 Question 4 (Page No. 243)
Explain why spin locks are not appropriate for single-processor systems yet are often used in multiprocessor systems.
Explain why spin locks are not appropriate for single-processor systems yet are often used in multiprocessor systems.
akash.dinkar12
149
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1721
Galvin Edition 9 Exercise 5 Question 3 (Page No. 243)
What is the meaning of the term busy waiting ? What other kinds of waiting are there in an operating system ? Can busy waiting be avoided altogether ? Explain your answer.
What is the meaning of the term busy waiting ? What other kinds of waiting are there in an operating system ? Can busy waiting be avoided altogether ? Explain your answer...
akash.dinkar12
164
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1722
Galvin Edition 9 Exercise 5 Question 2 (Page No. 242)
Explain why Windows, Linux, and Solaris implement multiple locking mechanisms. Describe the circumstances under which they use spin locks,mutex locks, semaphores, adaptive mutex locks, and condition variables. In each case, explain why the mechanism is needed.
Explain why Windows, Linux, and Solaris implement multiple locking mechanisms. Describe the circumstances under which they use spin locks,mutex locks, semaphores, adaptiv...
akash.dinkar12
556
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1723
Galvin Edition 9 Exercise 5 Question 1 (Page No. 242)
disabling interrupts frequently can affect the system’s clock. Explain why this can occur and how such effects can be minimized.
disabling interrupts frequently can affect the system’s clock. Explain why this can occur and how such effects can be minimized.
akash.dinkar12
197
views
akash.dinkar12
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
1724
Galvin Edition 9 Exercise 4 Question 14 (Page No. 192-193)
A system with two dual-core processors has four processors available for scheduling. A CPU-intensive application is running on this system. All input is performed at program start-up, when a single file must be opened. Similarly, ... ? Explain. How many threads will you create for the CPU-intensive portion of the application ? Explain.
A system with two dual-core processors has four processors available for scheduling. A CPU-intensive application is running on this system. All input is performed at prog...
akash.dinkar12
534
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
1
answer
1725
Galvin Edition 9 Exercise 4 Question 12 (Page No. 192)
Using Amdahl’s Law, calculate the speedup gain of an application that has a 60 percent parallel component for (a) two processing cores and (b) four processing cores.
Using Amdahl’s Law, calculate the speedup gain of an application that has a 60 percent parallel component for (a) two processing cores and (b) four processing cores.
akash.dinkar12
4.0k
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
1
answer
1726
Galvin Edition 9 Exercise 4 Question 11 (Page No. 192)
Is it possible to have concurrency but not parallelism ? Explain.
Is it possible to have concurrency but not parallelism ? Explain.
akash.dinkar12
548
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
1
votes
2
answers
1727
Galvin Edition 9 Exercise 4 Question 9 (Page No. 192)
Can a multithreaded solution using multiple user-level threads achieve better performance on a multiprocessor system than on a single processor system ? Explain.
Can a multithreaded solution using multiple user-level threads achieve better performance on a multiprocessor system than on a single processor system ? Explain.
akash.dinkar12
443
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
1728
Galvin Edition 9 Exercise 4 Question 7 (Page No. 192)
Under what circumstances does a multithreaded solution using multiple kernel threads provide better performance than a single-threaded solution on a single-processor system ?
Under what circumstances does a multithreaded solution using multiple kernel threads provide better performance than a single-threaded solution on a single-processor syst...
akash.dinkar12
227
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
1729
Galvin Edition 9 Exercise 4 Question 6 (Page No. 192)
Provide two programming examples in which multithreading does not provide better performance than a single-threaded solution.
Provide two programming examples in which multithreading does not provide better performance than a single-threaded solution.
akash.dinkar12
221
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
1730
Galvin Edition 9 Exercise 4 Question 5 (Page No. 192)
Assume that an operating system maps user-level threads to the kernel using the many-to-many model and that the mapping is done through LWPs(Light Weight Processes). Furthermore, the system allows developers to create real-time threads for ... real-time systems. Is it necessary to bind a real-time thread to an LWP(Light Weight Process) ?Explain.
Assume that an operating system maps user-level threads to the kernel using the many-to-many model and that the mapping is done through LWPs(Light Weight Processes). Furt...
akash.dinkar12
293
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
1731
Galvin Edition 9 Exercise 4 Question 4 (Page No. 191)
What resources are used when a thread is created ? How do they differ from those used when a process is created ?
What resources are used when a thread is created ? How do they differ from those used when a process is created ?
akash.dinkar12
196
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
1732
Galvin Edition 9 Exercise 4 Question 3 (Page No. 191)
Describe the actions taken by a kernel to context-switch between kernel level threads.
Describe the actions taken by a kernel to context-switch between kernel level threads.
akash.dinkar12
274
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
1
answer
1733
Galvin Edition 9 Exercise 4 Question 2 (Page No. 191)
What are two differences between user-level threads and kernel-level threads ? Under what circumstances is one type better than the other ?
What are two differences between user-level threads and kernel-level threads ? Under what circumstances is one type better than the other ?
akash.dinkar12
4.2k
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
1734
Galvin Edition 9 Exercise 4 Question 1 (Page No. 191)
Provide two programming examples in which multithreading provides better performance than a single-threaded solution.
Provide two programming examples in which multithreading provides better performance than a single-threaded solution.
akash.dinkar12
253
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
1735
Galvin Edition 9 Exercise 3 Question 18 (Page No. 153)
What are the benefits and the disadvantages of each of the following ? Consider both the system level and the programmer level. a. Synchronous and asynchronous communication b. Automatic and explicit buffering c. Send by copy and send by reference d. Fixed-sized and variable-sized messages
What are the benefits and the disadvantages of each of the following ? Consider both the system level and the programmer level.a. Synchronous and asynchronous communicati...
akash.dinkar12
401
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
1736
Galvin Edition 9 Exercise 3 Question 16 (Page No. 153)
Consider the RPC mechanism. Describe the undesirable consequences that could arise from not enforcing either the “at most once” or “exactly once” semantic. Describe possible uses for a mechanism that has neither of these guarantees.
Consider the RPC mechanism. Describe the undesirable consequences that could arise from not enforcing either the “at most once” or “exactly once” semantic. Descri...
akash.dinkar12
417
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
1737
Galvin Edition 9 Exercise 3 Question 15 (Page No. 153)
Give an example of a situation in which ordinary pipes are more suitable than named pipes and an example of a situation in which named pipes are more suitable than ordinary pipes.
Give an example of a situation in which ordinary pipes are more suitable than named pipes and an example of a situation in which named pipes are more suitable than ordina...
akash.dinkar12
366
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
1738
Galvin Edition 9 Exercise 3 Question 11 (Page No. 152)
Explain the role of the init process on UNIX and Linux systems in regard to process termination.
Explain the role of the init process on UNIX and Linux systems in regard to process termination.
akash.dinkar12
384
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
1
votes
0
answers
1739
Galvin Edition 9 Exercise 3 Question 10 (Page No. 151-152)
Construct a process tree similar to Figure 3.8. To obtain process information for the UNIX or Linux system, use the command ps -ael.Use the command man ps to get more information about the ps command.The task manager ... the parent process ID, but the process monitor tool, available from technet.microsoft.com, provides a process-tree tool.
Construct a process tree similar to Figure 3.8. To obtain process information for the UNIX or Linux system, use the command ps -ael.Use the command man ps to get more inf...
akash.dinkar12
1.3k
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
1
answer
1740
Galvin Edition 9 Exercise 3 Question 9 (Page No. 151)
Describe the actions taken by a kernel to context-switch between processes.
Describe the actions taken by a kernel to context-switch between processes.
akash.dinkar12
280
views
akash.dinkar12
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
Page:
« prev
1
...
53
54
55
56
57
58
59
60
61
62
63
...
91
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register