GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

In a file server, the following steps have to be performed o…

In a file server, the following steps have to be performed on each request: (1) parse request, (2) find and read file, (3) respond with file or error message. Assume steps (1) and (3) take 1ms and step (2) takes 2ms. Assume any delays due to inter-thread communication, synchronization, context-switching, etc. are negligible. Assume you have infinite resources. Consider a boss-worker and a pipelined model designs, each with a total of 4 threads. In both cases, you need to process a total of 6 requests. Answer the questions below. Please try to follow these rules:- Do not write the units. – Do not use a comma in your answer (e.g., write 1000 instead of 1,000 or write 0.75 instead of 0,75). – Write the leading zero in decimal fractions (e.g., write 0.75 instead of .75)- Show the results with up to two decimal places. Questions:For the boss-worker model, where the boss simply accepts requests and passes them onto a shared workers’ queue: a) How many requests can be processed concurrently? b) How long does it take to process a total of 6 requests in ms? ms c) What is the average throughput for this workload, in req/ms? req/ms d) What is the average response time for this workload, in ms? ms For a balanced implementation of the pipeline model: e) How many threads are allocated to the first stage? f) How many threads are allocated to the second stage? g) How many requests are concurrently being processed? h) How long does it take to process a total of 6 requests in ms? ms i) What is the average throughput for this workload, req/ms? req/ms j) What is the average response time for this workload, in ms? ms 

Read Details

State whether the following pieces of information describing…

State whether the following pieces of information describing an execution context are process-wide (PW) or thread-specific (TS):a) stack pointer b) virtual-to-physical memory mappings c) signal handlers d) signal mask e) open files Enter PW or TS in the text box. 

Read Details

A common solution in distributed data stores (or distributed…

A common solution in distributed data stores (or distributed file system) is to organize the metadata in two types of data structures: a global map (or global index) – used to identify a specific node in the system, and a data map – used to identify the location of the contents (e.g., chunks or blocks) of the replicated or partitioned data item (or file). What is the common way of implementing these data structures: Global Map:   Data Map:  

Read Details

The most artfully designed dessert presentations combine var…

The most artfully designed dessert presentations combine varied tastes and textures in a symmetrical arrangement.

Read Details

Which of the following could be used to make an individual-p…

Which of the following could be used to make an individual-portion-sized spongecake?

Read Details

Semisweet chocolate can be substituted in any formula that c…

Semisweet chocolate can be substituted in any formula that calls for ____________________chocolate.

Read Details

Fat bloom occurs when

Fat bloom occurs when

Read Details

When making molded chocolate candies, the __________________…

When making molded chocolate candies, the ________________________________________refers to the stage when finished chocolates are chilled before unmolding.

Read Details

The flavor of an ice cream or sorbet mixture intensifies as…

The flavor of an ice cream or sorbet mixture intensifies as it cools and freezes.

Read Details

What is the difference between sorbet and lemon granita?

What is the difference between sorbet and lemon granita?

Read Details

Posts pagination

Newer posts 1 … 40,908 40,909 40,910 40,911 40,912 … 82,138 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top