[aktiviti untuk 17 mac. sila jawap soalan 1 hingga 4)
The process model introduced in Chapter 3 assumed that a process was an
executing program with a single thread of control. Many modern operating
systems now provide features for a process to contain multiple threads of
control.
1. What is threads?
2. What is multi threading?
3. Explain four benefits of multi threading.
4. Briefly describe (or sketch) Multi Threading Model available (many-to-one,one-two-one and many-to-many)
5. Provide one programming examples in which multi threading does not
provide better performance than a single-threaded solution
Answer: Any kind of sequential program is not a good candidate
to be threaded. An example of this is a program that calculates an individual
tax return.
6. Consider a multiprocessor system and a multi threaded program written
using the many-to-many threading model. Let the number of user-level
threads in the program be more than the number of processors in the
system.Discuss the performance implications of the following scenarios.
a. The number of kernel threads allocated to the program is less than
the number of processors.
b. The number of kernel threads allocated to the program is equal
to the number of processors.
c. The number of kernel threads allocated to the program is greater
than the number of processors but less than the number of user level
threads.
Subscribe to:
Post Comments (Atom)
Cara download Installer windows 10 dalam format ISO
1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan. ...
-
ANSWERS TO CHAPTER EXERCISES (CHAPTER 8) Review Questions 1. List and describe various types of output, including technolog...
-
Based on real life scenario on any local company/ organization which you are very familiar, define the problem that could be addressed thr...
-
A. Response to the following statements by circling either T (TRUE) or F (FALSE). [10M] I. 1. Java enables users...
No comments:
Post a Comment