Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Questions by akash.dinkar12
0
votes
0
answers
441
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...
167
views
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
442
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...
557
views
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
0
answers
443
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.
197
views
asked
Mar 20, 2019
Operating System
galvin
operating-system
process-synchronization
descriptive
+
–
0
votes
3
answers
444
Galvin Edition 9 Exercise 4 Question 15 (Page No. 193)
Consider the following code segment: pid t pid; pid = fork(); if (pid == 0) { /* child process */ fork(); thread create( . . .); } fork(); a. How many unique processes are created? b. How many unique threads are created?
Consider the following code segment:pid t pid; pid = fork(); if (pid == 0) { /* child process */ fork(); thread create( . . .); } fork();a. How many unique processes are ...
986
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
programming
+
–
0
votes
0
answers
445
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...
539
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
1
answer
446
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.
4.0k
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
1
answer
447
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.
557
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
1
votes
2
answers
448
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.
451
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
1
votes
1
answer
449
Galvin Edition 9 Exercise 4 Question 8 (Page No. 192)
Which of the following components of program state are shared across threads in a multithreaded process ? a. Register values b. Heap memory c. Global variables d. Stack memory
Which of the following components of program state are shared across threads in a multithreaded process ?a. Register valuesb. Heap memoryc. Global variablesd. Stack memor...
2.3k
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
+
–
0
votes
0
answers
450
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...
232
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
451
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.
223
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
452
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...
295
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
453
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 ?
199
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
454
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.
278
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
1
answer
455
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 ?
4.2k
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
456
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.
254
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
threads
descriptive
+
–
0
votes
0
answers
457
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...
404
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
458
Galvin Edition 9 Exercise 3 Question 17 (Page No. 153)
Using the program shown below, explain what the output will be at lines X and Y. #include <sys/types.h> #include <stdio.h> #include <unistd.h> #define SIZE 5 int nums[SIZE] = {0,1,2,3,4}; int main() { int i; pid t pid; pid = fork( ... (i = 0; i < SIZE; i++) printf("PARENT: %d ",nums[i]); /* LINE Y */ } return 0; }
Using the program shown below, explain what the output will be at lines X and Y.#include <sys/types.h>#include <stdio.h>#include <unistd.h>#define SIZE 5int nums[SIZE] = ...
445
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
programming
+
–
0
votes
0
answers
459
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...
419
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
0
votes
0
answers
460
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...
372
views
asked
Mar 19, 2019
Operating System
galvin
operating-system
process
descriptive
+
–
Page:
« prev
1
...
18
19
20
21
22
23
24
25
26
27
28
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register