sem 1 Flashcards
a computer system
- user
- application
- Operating system
- Hardware
software can be divided into 2 groups, applications and operating system.
applications need to be supported by the operating system.
applications will use a certain amount of memory, RAM, etc
Describe the computer system in your own words.
applications help to solve the user needs, and they need to be supported by operating systems, where the operating system coordinates the resources of the application systems and controls the hardware.
what are some examples of operating systems in the real world?
- windows
- iOS
- android
- Linux
- Unix
what are the 3 objectives of operating system?
- efficiency
- convenience
- ability to evolve
why does operating system need to be efficient?
operating system need to be efficient as a Resource Manager.
OS needs to control the use of a computer’s resources. It is a software, and it needs to be executed by the processor. Thus, it needs to hand over control when necessary to other application programs, and it depends on the processor to let it regain control.
Thus, we can treat OS as a special software as compared to application programs.
why does operating system need to be convenient?
operating system need to be convenient as a computer interface.
OS needs to handle the hardware for the users. OS also needs to make the job of an application programmer easier by providing services that the programmer can use.
Typically, OS provides services in the following areas:
- Program execution
- Access to I/O devices
- Controlled access to files
- System access
- Error detection and response
- Accounting
why does operating system need to be able to evolve?
ease of evolution of an operating system.
A major OS will evolve due to hardware upgrades, new services and fixes.
Multiprogramming vs Uniprogramming
Uniprogramming:
- less main memory needed as only one program sits in the main memory at one time
- less efficient use of the processor during periods of I/O operations
multiprogramming:
- main memory needs more space as multiple programs are sitting in main memory
- more efficient use of processor as another program can run while current program is waiting for an I/O operation.
what are the 4 core functions of operating systems?
- processes
- memory management
- Information Protection & Security
- Scheduling and Resource Management
what is virtualisation and what is a virtual machine?
The word virtualisation creating a virtual version of a device or resource, and that device or resource can be an operating system, server, or even network.
virtual machine:
virtual machine is a machine installed with virtualisation software that can run several OS. Host OS can run multiple VM (Virtual Machines)
A hypervisor sits between the hardware and the VM and manages the resources.
Why do companies use Hypervisors?
- consolidation: server can run multiple VM and increase efficiency by sharing its resources.
- rapid development: a VM can be replaced in a very short time span as VM consists of files which are easy to copy.
- ease of management: VM can be used in experimentation.
Type 1 Hypervisor VS Type 2 Hypervisor
Type 1 Hyervisor sits between the hardware and the Guest OS.
- directly controls the hardware
- allows VM to be installed on it directly.
- usually has good performance.
- VM ESXI, Microsoft Hyper-V
Type 2 Hypervisor sits between the hardware and the Host OS.
- needs to go through the host OS to talk to hardware
- lesser performance compared to type 1 Hypervisor
- Oracle VM virtualbox