342 EXAM Flashcards
How does a system service an interrupt and ensure the current instruction set is not upset?
Stabilize the system, save data, CPU reloads. (CPU: Disable all lesser-priority interrupts, save PC data to main memory, execute code from main memory.) Signals sent to the CPU to stop current activity and do something else.
How are multiple interrupts handled?
Stabilize the system, save data, CPU reloads.
Name three objects of an Operating System and explain in detail one of them.
Process management, Main memory Management, Input/output management, File Storage Management, kernel: It is the primary interface between the hardware and the processes of a computer. The kernel connects these two in order to adjust resources as effectively as possible. The kernel has the functions of memory management, process and task management, disk management, and CPU scheduling. The core of the operating system.
What is the function of the Operating System?
The purpose of an operating system is to provide a platform on which a user can execute programs in a convenient and efficient manner.
What does multiprogramming do for an Operating System?
Multiprogramming is the ability to run multiple jobs on a single system at the same time. Reduces CPU idle time.
Why is there a memory hierarchy?
Because certain levels of storage are accessed much more than others at different levels, this allows for increased efficiency by minimizing access times.
What are the major functions of the Operating System?
Makes list of authorized users Make list of resources in system List all processes running Create processes starts program execution (Manages resources, provides abstractions)
How does on OS architecture differ from another?
Monolithic architecture : In the monolithic systems, each component of the operating system is contained within the kernel.
Layered architecture : This is an important architecture of operating system which is meant to overcome the disadvantages of early monolithic systems
Microkernel architecture : In microkernel architecture, only the most important services are put inside the kernel and rest of the OS service are present in the system application program.
Hybrid architecture : Combine the best functionalities of all these approaches and hence this design is termed as the hybrid structured operating system
What are the differences between Batch processing system and Real Time Processing
System?
Batch processing systems analyze programs and categorize them into batches based on
similarities. Real Time systems respond to activities within a certain amount of time.
A batch & real time are used for which type of applications? Name 2 different ones for each
Batch: Payroll in large companies, banking environments
Real Time: Air Traffic Controllers, Reservation Systems
What is the difference between Job and Process?
A process is what’s doing the work, more so how a job is done, meanwhile a job is a task,
something that is done by the system.
What are the advantages of Multiprocessing or Parallel System?
Multiprocessing systems can complete more work in one amount of time as the focus is allowed to
be on multiple things as stated in the name, allowing for multitasking. Parallel systems put all this
processing powers focus towards one job at a time, meaning each job is completed quicker
individually.
What are the differences between Real Time System and Timesharing System?
Time sharing systems do not have a time frame prioritized to respond within, there is a
multiprocessing of applications. It can be applied in systems that do not require a response within
a specific amount of time and have a need for running multiple things truly at once. A real time
system has an emphasis on giving a response within a certain amount of time and focus on one
task at a time.
What are the differences between multiprocessing and multiprogramming?
multiprogramming uses a time sharing environment where multiple programs are not actually being done at once rather a few seconds from one thing then a few for the next and so on. Multiprocessing on the other hand has multiple processors which
allows each processor to focus on a different task at once.
What is scheduling? What criteria affect the scheduler’s performance?
Scheduling is a key portion of the operating system, it’s purpose is to balance load on the system
when sharing system resources. The quality of CPU in the system would affect this performance.