Os Flashcards
(47 cards)
CPU
Central processing unit
Instruction for accessing the memory
MOV
Privileged instructions for kernel
IN/OUT
Specific sequence of instructions
Thread
Process has?
One or more threads
Race condition
Two threads or more access a resource without a proper order which leads to unpredictable behavior
Deadlock
When two threads or more are waiting for each other to release resources
Critical section
A code segment in a thread that updates or accesses shared data
Mutual exclusion
Methods to ensure only one thread does a particular activity
P
Decrease
V
Increase
Can a semaphore have a value of zero
Yes
Process
A program in execution
Memory layout of a process
Text section (executable code)
Data section تتضمن البيانات
Heap ذاكرة متواجده وقت تشغلي البرنامج
Stack ذاكرة حفظ مؤقته
What makes a process
Threads + address space
Maximum quantum?
10ms
Multitasking happens with?
Time-sharing
PCB
Process control block
RPC
Remote procedure call
MPI
Message passing interface
Benefits of rpc
Remote procedures accept arguments and return results
Easy to design
More focused
Simple use for clients
RPC issues
Transparency
Need of external data representation
RMI
Remote method invocation
Soap
Simple object access protocol