OS Flashcards
What is OS and its functions
Interface between user and hardware of a system
Functions:
controls computer processes
performs imp tasks
valuable service to user
handles/controls resources
hides complexity of s/w
Memory management
OS handles primary memory of main memory
main memory divided in bytes or arrays…
OS allocates and deallocates address to processes
handles importance of processes
Protection
mechanism which controls access of users, processes or programmers to resources provided by computer
In mutliprogramming, it allows safe sharing of files/directory
Security
safety from unauthorized access
protection from hackers and viruses
firewall, antivirus
Privacy
Keep essential information hidden and private
Name at least three open-source operating systems.
1) Linux - Linus Torvalds (1991)
2) Android - Android has historically been developed by a consortium of developers known as the Open Handset Alliance, but its most widely used version is primarily developed by Google.
3) Chromium OS - It uses a web engine for the user interface.
What are the key responsibilities of memory management in an OS?
1) Memory allocation
2) Memory deallocation
3) Memory protection
4) Paging and segmentation
5) Caching and compression
Identify the primary functions of process management in an operating system.
Process Creation
Process resource management
Process Scheduling
Process sychronization
Process Termination
Illustrate how file systems are organized in an operating system
Root directory
Directory
Subdirectory
Files
Files names
Assess the advantages and disadvantages of modern operating systems compared to older systems.
adv :
improved security, inc perform., enhanced user experience, better h/w support, better network and connectivity
dis :
Complexity(steep learning curve), dependence on internet, cost of licensing, compatibility issues
Paging and segmentation
Paging - dividing memory into pages/fixed - size blocks (equal sections)
Segmentation - dividing memory into variable - size segments
Process Management
OS mechanism to manage a process from creation to termination
Process Description and its contents
(PCB) Contains information related to the process.
Contents :
1 Process ID
2 Process State
3 Process Counter (address of the enxt process)
4 Register
5 Memory pointer
6 Memory Segment (segmented task various memory)
7 Open files
8 Signal (signal received by the processes)
9 Scheduling information
10 Accounting information
Process Control
mechanism and techniques used by OS to manage and regulate the execution of a program
Stack (Temporary data)
Heap (Dynamic alloc mem)
Data (Global and static var)
Text (Current activity according to counter value and register contents)
Evolution of OS
1940 - 1950
manual process handling, ENIAC, UNIVAC (no manual intervention, batch processing) (1940s)
1960
Multiprogramming and time sharing (CTSS) (multiple users into the same computer, using terminals)
1970
Unix launched (1971) and First microprocessor (Intel 4004) (1971)
1980
GUI and networking
Macintosh (1984), Microsoft (1985)
1990
Linux
advanced GUI
2000
Apple released Iphone (2007) and Android (2008)
Cloud based
Multiprocessing | multitasking
1 executing multiple processes concurrently by use of multiple processors , by using same physical resources
2 multiple proce. , same physical resources
3 infrequent context switching, frequent
4 high scalability, low
5 uses batch os, uses time sharing
6 simultaneous processing, switches bet processes
Schedulers
1 Long-Term Scheduler (Job Scheduler):
Responsible for selecting processes from the job pool and loading them into memory for execution.
Decides which processes to admit to the system and when.
2 Short-Term Scheduler (CPU Scheduler):
Responsible for selecting the next process to execute on the CPU.
Decides which process to execute next and for how long.
3 Medium-Term Scheduler:
Responsible for swapping processes in and out of memory to free up resources.
Threads and types
Lightweight processes
User-level
managed by application, fast and lightweight, kernel unaware, limited control
Kernel-level
operating system manages, kernel schedules and manages, heavier but more control
Hybrid
combination