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

ومـما زادني شـرفـاً وتـيــهـاً
وكدت بأخمصي أطأ الـثريا
دخولي تحت قولك يا عبادي
وأن صـيَّرت أحمد لي نـبيـا
Download Telegram
works well for tasks that are synchronous (cooperating).
Anonymous Quiz
20%
Thread pool
80%
Fork-join
works well for asynchronous (independent) tasks
Anonymous Quiz
91%
Thread pool
9%
Fork-join
in implicit threading Each task is mapped to a separate thread using the many-to-many model
Anonymous Quiz
90%
T
10%
F
At startup, the server creates a set of threads in a pool
Anonymous Quiz
94%
Thread pool
6%
Fork-Join
Implicit fork-join is an asynchronous version of the thread pool
Anonymous Quiz
37%
T
63%
F
Create one or more child threads. then Wait for the created threads (children) to terminate. finally Join the threads, at which point it can retrieve and combine their results
Anonymous Quiz
16%
Thread pool
84%
Fork-Join
When the server receives a request, it submits it to the pool
Anonymous Quiz
91%
Thread pool
9%
Fork-Join
If the pool has a thread, the …. is served immediately
Anonymous Quiz
88%
request
13%
response
in Thread pool If the pool is empty, the task is queued until a thread becomes free
Anonymous Quiz
86%
T
14%
F
in Thread pool Once a thread completes serving the request, it returns to the pool.
Anonymous Quiz
92%
T
8%
F
…. can adjust the number of threads in the pool.
Anonymous Quiz
15%
sequential thread pool
85%
dynamic thread pool
creating a thread is faster than Serving a request with an existing thread
Anonymous Quiz
36%
T
64%
F
Limiting the number of threads helps avoid exhausting system resources
Anonymous Quiz
92%
T
8%
F
Refers to terminating a thread before it has completed
Anonymous Quiz
11%
Thread constructing
89%
Thread Cancellation
Cancellation of a target thread can be asynchronous or deferred
Anonymous Quiz
95%
T
5%
F
The target thread periodically checks whether it should terminate
Anonymous Quiz
21%
Asynchronous cancellation
79%
Deferred cancellation
One thread immediately terminates the target thread
Anonymous Quiz
91%
Asynchronous cancellation
9%
Deferred cancellation
This allows the target thread to terminate itself in an orderly fashion
Anonymous Quiz
21%
Asynchronous cancellation
79%
Deferred cancellation
تم تحويل جميع أسئلة محاضرة 4 ولله الحمد.
يا شباب اللي عنده مشكلة في سؤال يكتب تحته اي اللي مش فاهمه مش "؟" أو "." توفيرا للوقت لصالحنا وصالحكم
الميدتيرم
ملفات اسئلة الOS لأول 4 محاضرات