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

ومـما زادني شـرفـاً وتـيــهـاً
وكدت بأخمصي أطأ الـثريا
دخولي تحت قولك يا عبادي
وأن صـيَّرت أحمد لي نـبيـا
Download Telegram
in Paging Limitations Can still have External fragmentation
Anonymous Quiz
34%
T
66%
F
segmentation = 1 segment/process
Anonymous Quiz
36%
T
64%
F
segmentation = many segments/process
Anonymous Quiz
87%
T
13%
F
page (logical) => page frame (physical)
Anonymous Quiz
72%
T
28%
F
in Hardware support multiple base/limit pairs, two per segment
Anonymous Quiz
52%
T
48%
F
Cooperative Process: One process's execution has an effect on the execution of other processes.
Anonymous Quiz
90%
T
10%
F
Independent Process: the execution of one process has impact on the execution of the others
Anonymous Quiz
20%
T
80%
F
Processes can execute concurrently or in series
Anonymous Quiz
34%
T
66%
F
multi-core processor allows parallel execution of different processes
Anonymous Quiz
90%
T
10%
F
Process Synchronization is the task of coordinating the execution of processes in such a way that two processes can have access to the same shared data and resources
Anonymous Quiz
61%
T
39%
F
Race Condition is Several processes access and manipulate the same data concurrently may lead to incorrect shared data.
Anonymous Quiz
90%
T
10%
F
The Producer-Consumer problem is a classic multi-process synchronization problem.
Anonymous Quiz
83%
T
17%
F
The job of the consumer is to generate the data, put it into the buffer, and again start generating
data
Anonymous Quiz
17%
T
83%
F
The producers and consumers share different memory buffers that is of fixed-size (bounded buffer)
Anonymous Quiz
29%
T
71%
F
in producer consumer problem We can do so by having an integer counter that keeps track of the
number of full buffers. Initially, counter is set....
Anonymous Quiz
2%
-1
78%
0
15%
1
5%
2
counter is decremented by the producer after it produces a new buffer
Anonymous Quiz
28%
T
72%
F
in producer consumer problem, we use counter-- in … stage
Anonymous Quiz
26%
producer
74%
consumer
in producer consumer problem, we use while(counter == BUFFER_SIZE); in … stage
Anonymous Quiz
84%
producer
16%
consumer
in producer consumer problem, we use while(counter == 0); in … stage
Anonymous Quiz
78%
consumer
22%
producer
in producer consumer problem, we use buffer[in] = next_consumed
Anonymous Quiz
44%
T
56%
F
in producer consumer problem
in =.........
Anonymous Quiz
6%
in + 1
6%
(in + 1) % counter
80%
(in +1) % BUFFER_SIZE
8%
(in - 1) % BUFFER_SIZE