342 EXAM Flashcards
(37 cards)
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.
What is the purpose of Memory Management?
Memory management is important because it maintains track of where memory is being allocated,
if it is free, where it needs to be received, and how much. This functionality is vital because it
maintains efficiency in an environment with multiple requirements from different locations.
hat is the significant difference between the five-state and seven-state model?
The seven state model is basically the five state model but with two extra suspended states.
What occurs during the new state?
A new process is made but is not yet loaded into the main memory, when there is enough space
available for the new process it is moved to the main memory by the long term scheduler. Initializes PCB and pointers.
What occurs during the exit state?
The process is completed or aborted.
How is the PCB different between two processes? How are they the same?
The base/foundational form is consistent although the two processes themselves have their own
different respective data.
How can an instruction trace be used?
It can assure functionality confirming that processes are moving and operating as intended.
List three general categories of information in a PCB.
process state information
process identification
process control information
What is Linux?
Linux is an open source operating system that manages the resources and system hardware
Describe the components of the Linux Operating system.
Describe the components of the Linux Operating system.
Kernel: Manages as well as interacts with the system hardware
System Library: special programs/functions that implement the majority of
the OS’ functionality
System Utility: Compiler, System software, User utility programs, etc.
provides the OS functionality to the user.