Have a look at the code below. These are thre a) while(TRUE){ b) get_next_request(&buf); handoff_work (&buff); while(TRUE){ wait_for_work (&buf); look_for_page_in_cache(&buf, &page) if (page_in_cache(&page) { read_page_from_disk(&buf, &page);

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter11: Operating Systems
Section: Chapter Questions
Problem 14VE
icon
Related questions
Question

Please written by computer source 

Have a look at the code below. These are threads for two processes. Thread (a) is performing a role? What is it's role formally called?
a)
while(TRUE){
b)
get_next_request(&buf);
handoff_work(&buff);
while(TRUE){
wait_for_work (&buf);
look_for_page_in_cache(&buf, &page)
if (page_in_cache(&page) {
read_page_from_disk(&buf, &page);
}
return_page(&page);
Transcribed Image Text:Have a look at the code below. These are threads for two processes. Thread (a) is performing a role? What is it's role formally called? a) while(TRUE){ b) get_next_request(&buf); handoff_work(&buff); while(TRUE){ wait_for_work (&buf); look_for_page_in_cache(&buf, &page) if (page_in_cache(&page) { read_page_from_disk(&buf, &page); } return_page(&page);
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Stack
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning