Basic Operating system Knowledge Flashcards
Need of an Operating system?
- provides a virtual machine which could hide hardware details, providing user with an interface to application software.
- Manages computer recourses by keeping track of them and granting permission to access them
- Process management and Execution of applications
- Identification of faults and troubleshooting
- File management
The evolution of OS?
- Simple Batch system
- Multi programmed batch system
- Time sharing system
- Mutli programmed time sharing sysytem
Simple Batch System?
functions done batch by batch- one after another- serial processing
No direct access with the computer
When the current program ends being executed, it is written to a magnetic strip and then the OS loads the next program
Uni programming-one at a time
High response time
Multi Programmed Batch system?
Memory is partitioned to hold multiple programs
When current processor is doing input output, OS switches processors and executes another program in memory
This was introduced to minimize idle time of the system
If memory is large enough to keep more programs processor could even be 100% busy
The central theme of modern OS
Categorization of OS?
- Single user-single task
- Single user- multi task
- Multi user- multi task
- Real time OS
Single user- single task
Occupies much less space in memory
however, it is uni programmed to do one task at a time
Single user- Multi Task
Highly productive
however, complex
and occupies more space
eg; Microsoft Windows
Multiuser- Multi task
Time efficient
productive- User does not have to provide instructions to every desktop. The change done to one is enough
However, space consuming
If the server is broken, cant perform from any device
These programs run on a single network- a terminal server
Real time OS
To provide quick predictable responses, within specific timings
Embed systems not hardware
very fast
no need to be loaded from memory so time saving
Occupies less space in memory as well
Used in- Airplane reservation systems
Air traffic control signals
Stock involved systems
Systems with the need of instant updates
What is a process
A program in execution. Or a program that can be assigned to a processor to be executed
Reasons for process creation?
- When a new batch job is presented- when OS is prepared to take new work, it reads the next sequence of job control commands
- Interactive Login
- OS providing a service- creates a process to provide a function demanded by the user
eg: a process to control printing
*To exploit parallelism- OS can spawn many processes
Process requirements?
- The ID
- Executable code- A complied machine readable translation to be loaded to memory
- Execution contexts- pc, waiting for I/O or not
- Data needed for execution
Reasons for process termination?
- Normal termination
- memory access violation
- process requirements not being provided
- termination of parent process
- execution time limit being exceeded
- an execution error
Interrupts?
Interrupts temporally terminates an ongoing process
An interrupt can be planned- requested or unplanned- due to a
time expiry
service request
I/O completion
for example- When a disk driver is finished transferring data it may generate an interrupt to the OS to inform that its over
Interrupts occur asynchronous to the ongoing activities