(a) List the FOUR main elements of a computer. (b) What are multiprogramming and
ID: 3841119 • Letter: #
Question
(a) List the FOUR main elements of a computer. (b) What are multiprogramming and multithreading? (c) List Two advantages of user level threads (ULTs) over kernel level threads (KLTs). (d) List TWO disadvantages of ULTs compared with KLTs. (e) An engineer designs an automatic fire sprinkler system using a computer for detecting fire accidents in two rooms. If any sprinkler of the two rooms sprinkles water, the fire alarm will sound. For each room, the engineer uses one thread to check each sprinkler if water is sprinkling or not. The major duty of the system is to respond to any fire accident in these two rooms. Suggest if two user level threads (ULTs) are used or two kernel level threads (KLTs) are used. Give a sensible reason to support your decision.Explanation / Answer
Q-1
Hardware : Hardware is the base component of computer which we can say electronic component for it which can consists of Memory , Microprocessor etc , hardware is the lowest level of component.
Software : Software is the middle layer component, e.g operating system, application software , this software component is used to do the various tasks like managaing the resource , scheduling of threads etc.
Data : Data which computer takes and processes. Data can be of various types and can be stored at different kind of techniques.
End- Users : This is the highest level of component. e.g human or any other end program which instructs the computer to do certain operations.
Q-2 What are multi processing and multi threading?
multi processing is the ability of the computer to execute more than one process at a time . so multi processing is in context of hardware where more than one processor can exist simultaneously to execute a single piece of program/process.
multi threading : multi threading is the model that allows the mulitple threads of a single process and allows to execute these multi threads simultaneously/parallely.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.