Derived Channel
1.54K subscribers
252 photos
4 videos
374 files
68 links
القناة الأساسية
@stepbystep001

ومـما زادني شـرفـاً وتـيــهـاً
وكدت بأخمصي أطأ الـثريا
دخولي تحت قولك يا عبادي
وأن صـيَّرت أحمد لي نـبيـا
Download Telegram
Calls to acquire () and release () can’t be atomi
Anonymous Quiz
13%
T
87%
F
in Mutex Locks Spinlocks is ideal for single-CPU as it is wasteful of CPU cycles that other process might be able to use productively
Anonymous Quiz
67%
F
33%
T
Derived Channel
Atomic =
semaphore S is an integer variable that can only be modified via two interruptible operations: wait () and signal ()
Anonymous Quiz
71%
T
29%
F
in semaphore wait function the value of the integer is
Anonymous Quiz
32%
incremented
68%
decremented
in semaphore signal function the value of the integer is
Anonymous Quiz
15%
decremented
85%
incremented
integer value can range only between 0 and 1
Anonymous Quiz
13%
Counting semaphore
87%
Binary semaphore
The main issue with semaphores is the busy loop in the signal() which eats CPU cycles without
accomplishing anything useful
Anonymous Quiz
56%
F
44%
T
semaphore implementation with no busy waiting there’s an associated waiting queue
Anonymous Quiz
71%
T
29%
F
remove one of processes in the waiting queue and place it in the ready queue
Anonymous Quiz
15%
block
85%
wakeup
place the process invoking the operation on the appropriate waiting queue
Anonymous Quiz
92%
block
8%
wakeup
two or more processes are waiting indefinitely for an event that can be caused by only one of the
waiting processes
Anonymous Quiz
84%
Deadlock
12%
Starvation
4%
Priority Inversion
indefinite blocking
Anonymous Quiz
15%
Priority Inversion
57%
Starvation
28%
Deadlock
A process may never be removed from the semaphore queue in which it is suspended
Anonymous Quiz
33%
Priority Inversion
52%
Starvation
15%
Deadlock
Mutual exclusion can be provided by the....
Anonymous Quiz
20%
mutex locks
8%
counting semaphores
68%
both of them
4%
neither of them
Derived Channel
Mutual exclusion can be provided by the....
السؤال دا عليه جدل فلو أمكن حد يوضحلنا هل ال counting تقدر تقوم بدور ال binary المقصود في السؤال فعلا؟
A …. system allows another process to use the CPU when the current process has to wait for I/O,
thereby making full use of otherwise lost CPU cycles.
Anonymous Quiz
17%
operating
83%
scheduling
in a multi-processor system only one process can run at a time. Other processes must wait until the
CPU is free and can be rescheduled
Anonymous Quiz
25%
T
75%
F