Beruflich Dokumente
Kultur Dokumente
OS Concepts:
Reetrancey Procedure:
A Reetrancey procedure is one in which a single copy of a program is shared between mulitple
users at same point of time. It will have a permanant part and temporary part
permanant part: Instructions that make up the procedure
Temporary part: a pointer back to the calling program as well as memory for local variables used by the program
2. Os as a User/Computer interface:
Program development
Program execution
access to I/O devices
Controlled access to files
System access
Error detection and response.
3. Batch multiprocessing and time sharing: both uses multi programming
Batch Processing
maximize the cpu usage
job control language commands provided with the job
time shareing
minimize the response time
commands entered at the terminal
4. Five therotical advaces in devolping Opearing systesm
process
memory management
information protection and security
scheduling and resource management
sytem strucute
5 .Jacketing : Technique to overcome blocked state inside a ULT threading .
For example, instead of directly calling a
system I/O routine, a thread calls an application-level I/O jacket routine. Within this
jacket routine is code that checks to determine if the I/O device is busy. If it is, the
thread enters the Blocked state and passes control (through the threads library) to
another thread.
What is a process control block:
A process control block is a structure maintained by the kernal for each process. It consists of the
process id, its execution state and other information. When ever the process switching occures os
will push the PCB into the stack and retrieves it back one the process gets its time slice.
While process switching the PCB also stores the cureent execution address also.
Multithreading: The ability of an OS to support concurrent paths of execution , with in a process .
Advantages of using threads :
1.Creating and termination is easier than a process creation/termination.
2. Switching between threads is easy than switching between process(Context switching).
3. Communication b/w threadss is easier than that of process . It needs kernal interfearance for
protection and all.
DeadLock:
A situation in which a process is waiting for a resource which is held by another process and that
process is waiting for the resource which is held by the first process. OR
A situation in which two or more processes are unable to proceed because each is waiting for one of
the other to do something.
LiveLock:
A situaltion in which two or more processes are changing their state continously with the reponse
from other processes with out doing any useful work.
MutualExclusion:
If any one of the processes is in a critical section executing a shared resource. No other process
should may be in a critical section try to acqure the shared resource.
Race Condition:
A situation in which multiple processes are doing executing or processing on a shared data item.
And the result depends on the relative timing of their execution of the processes.
Starvation:
A situation in which a process is overlooked by the schedular even though it is able to proceed; it is
never choosen.
5 philophers , 5 plates and 5 forks But each require two forks atleast to eat.
Unix Concurrency Mechanisms:
pipes
Messages
Shared Memory
Semaphores
Signals
Memory Management:
Frame: A fixed length inside the main memory
Page : A fixed lenght inside the secondary memory
Segment: A variable length blcok inside the secondary memory.
Fixed Parition: Equal size frames Internal Fragmentation
Dynamic Partition Have exactly the same size of the process memory External Fragmentation