Operating System
106503Module 1: Introduction to Operating Systems
Q1a. What is operating system? (i) Collection of programs that manages hardware resources (ii) System service provider to the application programs20192m
Module 1: Introduction to Operating Systems
View this question on its own page →What is operating system?
(i) Collection of programs that manages hardware resources
(ii) System service provider to the application programsWorked SolutionAnswer: Both (i) and (ii) are correct — complete definition is (i) + (ii)
- If strictly single-choice, the most accepted textbook answer is (i) Collection of programs that manages hardware resources.
- Standard definition: OS is system software that acts as intermediary between hardware and applications — it manages hardware resources and provides services to application programs. The question truncates option (ii), but both views are part of the full definition. In many PYQs this is marked as (i). If exam allows multiple correct, choose (i) and (ii).**
Q1a. Which type of Operating System allows multiple users to access the system simultaneously? (i) Single-user OS (ii) Batch OS (iii) Multi-user OS (iv) Embedded OS20252m
Module 1: Introduction to Operating Systems
View this question on its own page →Which type of Operating System allows multiple users to access the system simultaneously?
(i) Single-user OS
(ii) Batch OS
(iii) Multi-user OS
(iv) Embedded OSWorked SolutionAnswer: (iii) Multi-user OS
- Multi-user OS (e.g., UNIX, Linux, Windows Server) allows multiple users to access the system simultaneously via terminals/remote sessions, with isolation and access control.
- Single-user OS allows only one user at a time.
- Batch OS executes jobs without user interaction.
- Embedded OS is specialized for devices, not multi-user access.
Q1c. What is the motive of using a Virtual Machine for an operating system? (i) Increase CPU throughput (ii) Run multiple operating systems on the same hardware (iii) Create databases (iv) Allow multiple threads to execute concurrently within a process20252m
Module 1: Introduction to Operating Systems
View this question on its own page →What is the motive of using a Virtual Machine for an operating system?
(i) Increase CPU throughput
(ii) Run multiple operating systems on the same hardware
(iii) Create databases
(iv) Allow multiple threads to execute concurrently within a processWorked SolutionAnswer: (ii) Run multiple operating systems on the same hardware
VM provides virtualization via hypervisor (Type1 bare-metal or Type2 hosted), allowing isolation, consolidation, testing and safe execution of multiple OS instances on one physical host. Not primarily for CPU throughput or databases.
Q1d. What does a virtual machine do? (i) Manages only hardware devices (ii) Replaces the operating system (iii) Acts as a real machine but is implemented in software (iv) Removes the need for file systems20242m
Module 1: Introduction to Operating Systems
View this question on its own page →What does a virtual machine do?
(i) Manages only hardware devices
(ii) Replaces the operating system
(iii) Acts as a real machine but is implemented in software
(iv) Removes the need for file systemsWorked SolutionAnswer: (iii) Acts as a real machine but is implemented in software
VM virtualizes CPU, memory, devices via hypervisor, presenting illusion of dedicated hardware to guest OS. Does not replace OS or remove file systems.
Q2a. Explain system calls and their importance in Operating Systems. Discuss various categories of system calls.20257m
Module 1: Introduction to Operating Systems
View this question on its own page →Explain system calls and their importance in Operating Systems. Discuss various categories of system calls.
Worked SolutionSystem Calls & Importance
Interface for user programs to request kernel services (trap to kernel mode). Essential for protected hardware access.
Categories
- Process Control: fork, exec, exit, wait, kill
- File Management: open, read, write, close, unlink
- Device Management: ioctl, read/write device
- Information Maintenance: getpid, time, sysinfo
- Communication: pipe, shmget, send/recv
- Protection: chmod, chown
Importance: provides abstraction, security, portability. Invoked via syscall instruction (int 0x80 / syscall). Library wrappers handle setup.
Q2b. Illustrate the concept of Virtual Machines.20257m
Module 1: Introduction to Operating Systems
View this question on its own page →Illustrate the concept of Virtual Machines.
Worked SolutionVirtual Machine
VM is software emulation of physical machine via hypervisor.
- Type1 (bare-metal): hypervisor on hardware (VMware ESXi, Xen)
- Type2 (hosted): hypervisor on host OS (VirtualBox)
Components: virtual CPU, virtual memory, virtual devices. Isolation, snapshot, migration. Uses: server consolidation, testing, cloud. Advantages: isolation, resource utilization. Cost: overhead, I/O virtualization. Example: running Linux+Windows simultaneously.