Please enable JavaScript.
Coggle requires JavaScript to display documents.
PROCESS, resource distribution - Coggle Diagram
PROCESS
Process timing
Multiprogramming
Time-sharing
Scheduling queue
Job queue
Ready queue
Device queue
Scheduler
Long-term scheduler
Short-term scheduler
Medium-term scheduler
Context switch
Save context
load context
Context Switching Triggers
Interrupts
Multitasking
User/Kernel switch
Interprocess Cooperation
information sharing
define data
data transmission
computational speedup
Analyze and break down
Assign to processes
Use mechanisms like queues to send and receive data
Do a joint job
Build complex software
Analyze and break down
Determine what part each process will perform
Synchronize processes
Use pipes or sockets to transfer data
Communication and synchronization mechanism
Choose a communication mechanism
Use synchronization mechanisms like semaphore, mutex, condition variables to ensure safety and synchronization
Interprocess communications
for processes to communicate and synchronize actions
two main methods
Shared Memory
Share to exchange information
between the two Processes
Producer Process
create items
Consumer Process
consumed from a common memory area
Message Passing
through Communication Link
send and receive messages via communication channel
size can be of fixed or of variable
Direct
implemented when it use a specific process identifier
In-direct
is done via a shared mailbox
Advantages
better overall performance
synchronization and communication protocols
increased efficiency and flexibility
span multiple computers or networks
Disadvantages
Increases complexity
introduce security vulnerabilities
Requires careful management
lead to data inconsistencies
Tasks for the process
Process creation
Principal Events
System initialization
Create some basic processes
kernel processes
system services
Execution of a process creation system Call
call a function
system call
create a new child process
start execution
User request to create a new process
The operating system processes the request
Creates a new process to execute the application
Initiation of a batch job
Address space
Child duplicate of parent
Child has a program loaded into it
Process control block
Manage all process activities
Provides user support mechanisms
provides a communication mechanism
Supports multiple process rotation
Process states
Process lifecycle
New
Ready
Running
Blocked
Terminated
resource distribution