What is an Operating System?; Functions of an Operating System; UNIX System Architecture
What is an Operating System?; Functions of an Operating System; UNIX System Architecture
What is an Operating System?
Why is an OS Needed?
Basic functions of a computer:
1. Data Storage — save data to storage devices
2.
Data Processing — compute and transform data
3. Data Movement — transfer data
between components
4. Control — coordinate all operations
Problem: Any user cannot communicate/interact directly with computer hardware to do
different tasks. There is a need for some interface between user and hardware.
Solution: The Operating System
Definition of Operating System
An Operating System (OS) is system software that:
- Manages computer hardware and
software resources
- Provides a common interface between users and hardware
- Controls
and coordinates use of hardware among various application programs for various users
- Acts
as a resource manager — allocates CPU, memory, I/O to processes
OS as an Intermediary
```
Applications (User Programs)
↕
OPERATING SYSTEM
↕
Hardware (CPU, Memory, I/O)
```
Popular Operating Systems
Functions of an Operating System
UNIX System Architecture
Overview
UNIX is one of the most influential operating systems ever designed (Bell Labs, 1969).
Major Subsystems of UNIX:
1. File Subsystem — manages files and directories
2. Process Control Subsystem —
manages processes
UNIX Architecture Diagram
```
+-------------------------------------------------------+
+------------------+-------------------------------------|
+------------------+------------------------------------+
+----------------------+----------------------------------+
+-------------------------------------------------------+
+-------------------------------------------------------+
```
UNIX Key Concepts
Continue full topic on App →Practice MCQs (20)
1. UNIX is referred to as "mother of all modern operating systems" because:
- A. Its architecture is followed by Windows, Linux, macOS, Android
- B. It is the fastest
- C. It is the oldest OS in existence
- D. It was the first free OS
2. Which of the following is not a kernel functionality?
- A. Process Management
- B. Protection & Security
- C. Memory Management
- D. Hardware Abstraction
3. Which of the following is a CUI program in Linux?
- A. KDE
- B. explorer
- C. shell / terminal
- D. GNOME
4. Which function of OS is considered optional / utility (not basic)?
- A. Process Management
- B. CPU Scheduling
- C. Memory Management
- D. Networking
5. UNIX was developed at __ in 1970s by Ken Thompson, Dennis Ritchie and team.
- A. MIT
- B. Microsoft
- C. AT&T Bell Labs
- D. IBM
6. Which of the following features were first introduced together by UNIX?
- A. Multi-user only
- B. Multi-tasking only
- C. Multi-user, multi-programming, multi-tasking (all)
- D. Multi-programming only
7. An OS is a _
- A. All of these
- B. resource allocator
- C. system software
- D. resource manager
8. Which of the following is not a system program?
- A. MS Office
- B. Kernel
- C. Device Driver
- D. Scheduler
9. Which of the following is a utility software?
- A. Antivirus
- B. Windows Firewall
- C. Disk manager
- D. All of these
10. In the 1940s era, the classic components of a computer system were __.
- A. 4
- B. 5
- C. 3
- D. 6
11. Computer is a which performs different functions efficiently and accurately.
- A. digital device
- B. hardware
- C. machine
- D. All of these
12. All of the following can be categorized as system programs except:
- A. Interrupt Handler
- B. None (all are system programs)
- C. Loader
- D. Device Driver
13. UNIX was first run on the machine:
- A. DEC-PDP-7
- B. IBM 360
- C. Intel 8080
- D. PDP-11
14. GNOME in Linux is an example of a(n) _.
- A. GUI
- B. Shell
- C. CLI
- D. Kernel
15. Which bootable device will a system use first if configured with default priorities?
- A. Device selected by user via bootloader
- B. First connected USB
- C. Random device
- D. Device chosen by bootstrap loader based on defined priorities
16. Which of the following is true about the OS?
- A. Manages limited resources among programs (resource manager)
- B. Allocates resources like CPU time, memory (resource allocator)
- C. Controls execution of all programs (control program)
- D. All of these
17. Which of the following sections of an ELF file holds uninitialized data?
- A. code section
- B. bss section
- C. rodata section
- D. data section
18. Which program provides the Graphical User Interface in Windows?
- A. cmd.exe
- B. notepad.exe
- C. explorer.exe
- D. command.com
19. What are the basic functions of a computer?
- A. data movement
- B. data processing
- C. All of these
- D. data storage
20. Which of these is not a classic component of a computer system?
- A. Input
- B. Compiler
- C. Storage
- D. Output