Please enable JavaScript.
Coggle requires JavaScript to display documents.
OS Ch3 (Processes), from file to process, Exceptions and Interupts, The…
-
from file to process
executable files
acts as the dna, as the template for the process
-
-
-
-
-
-
-
-
Exceptions and Interupts
-
when an interupt occurs
-
interupt that is very small like a notification or changing a datastructure then the context wont change
system calls that dont invote teh CPU scheduler executes in the same context as the process and there is no context switch
-
Interupt from a device causes the interupt handler to run, if it needs to call the scheduler then there is a context switch
The Process Concept
Formally
-
Stack contents: function parameters, return addresses, and local variables
data segment, which contains global variables and constants
-
-
-
-
Scheduling
process scheduling
-
Types
-
-
short term
CPU scheduling, which memory resident processes should be given to the CPU next
-
-
-
-
-
Concurrency
Cooperating
-
-
Example: chrome browser
3 types of proccesses
browser processes, manages the user interface and all disk and network I/O
-
-
syncronous operations
a processs is blocked if it's not allowed or possible to execute any instructions because it is waiting for an event to take place
blocking send, if the process sending this is blocked until it recieves a return
blocking recieve, if the process is blocked until a message is available
-
if both are blocked because they are both waiting for a message send and received is called a rendezvous because thats when they both are waiting for each other and meet up
asynchronous operations
non blocking operations
doesnt wait for input, if the data is available it recieves it, if not then you get a null or special operator saying it didnt recieve anything
pipes
-
-
can be naned or unnamed
-
unnamed pipes can only be used by related processes , like parent and child, or sibling processes
-
-
-