Select which scheduler corresponds to each statement: 1. The goal is to maximize throughput [1] 2. One of its constraints involves being lightweight [6] 3. Also called the memory scheduler[3] 4. Decided what remains in memory and what gets placed back into storage[4] 5. Generally not used in interactive operating systems [2] 6. Decide which process gets to be executed next in the CPU[5]
Blog
Preemptive scheduling is typically used with interactive ope…
Preemptive scheduling is typically used with interactive operating systems. Match these classic scheduling algorithms: Shortest Remaining Time First, Round Robin, Preemptive Priority, and Compatible Time-Sharing System with their definitions.
Consider the following pseudocode for threads that communica…
Consider the following pseudocode for threads that communicate using a Linux pipe (message passing). What is the order that the functions (e.g. horse(), cat(), etc) run in? Note that, with Pipes, the receiving operation blocks the thread until the message is received. pipe pipe1 = new Pipe(); pipe pipe2 = new Pipe(); void thread1() { receive_from_pipe(pipe1); zebra(); horse(); write_to_pipe(pipe2, “msg1”); receive_from_pipe(pipe1); waterfall(); write_to_pipe(pipe1, “msg3”); receive_from_pipe(pipe1); } void thread2() { cat(); write_to_pipe(pipe1, “msg2”); receive_from_pipe(pipe2); dog(); write_to_pipe(pipe1, “msg4”); }
For each question about Processes, choose True or False: 1….
For each question about Processes, choose True or False: 1. In the process model, a process has independence of execution. A process does not depend on any other processes executing. [1] 2. Processes are created by System initialization (“init”) or by Process request, which is technically called “spoon”. [2] 3. Another process signaling the termination of the current process is a voluntary Normal Exit [3] 4. All processes have memory areas for the stack, the heap, the pipes, and text while running [4]
Given the following batch jobs Calculate the mean turnaroun…
Given the following batch jobs Calculate the mean turnaround time (MTT) using the Shortest Job First non-preemptive scheduling algorithm. Answer with a number. For example “3.45” or “3”. Priority 0 is the lowest priority.
A farm consists of 220 acres of land. The farmer plans to p…
A farm consists of 220 acres of land. The farmer plans to plant corn (x) and oats (y). Profit per acre in corn is $40 and in oats is $25. The number of labor hours is 300; where each acre of corn requires 2 hours, and oats require 1 hour per acre. Determine the number of acres of corn and of oats that should be planted to maximize profit. Graph the feasible solution and find the corner points. 1. How many corner points exist for the feasible solution? [n] 2. One corner point does NOT lie on the x or y axis, what is the y-value of this corner point? [y] 3. What is the maximum profit? [P] Do NOT put a comma nor $ sign in your answer for the thousands mark (i.e., use 2000 and NOT $2,000.00). You may round your answer to the nearest dollar. (When you finish, make sure to show your work to the camera for few seconds, submit your work after you finish the exam. The submitted copy must match what you showed to the camera. Answers without the chart will not be counted)
Refer to Figure 10. Name a muscle that performs the followi…
Refer to Figure 10. Name a muscle that performs the following actions AND include the Letter that labels it on the figure. 1. FLEXES the ELBOW joint. Muscle Name & Letter: [a] 2. ADDUCTS the arm at the SHOULDER joint. Muscle Name & Letter: [b] 3. FLEXS the WRIST joint. Muscle Name & Letter: [c]
Refer to Figure 7. For each of the following bones, identif…
Refer to Figure 7. For each of the following bones, identify whether they are LEFT or RIGHT: BONE A: [a] BONE C: [e] BONE E: [f] BONE G: [g]
Refer to Figure 9. For each of the following bone pairs, nam…
Refer to Figure 9. For each of the following bone pairs, name the TWO BONES (be as specific as possible!) and the SPECIFIC TYPE of JOINT between them. Name of Bones 1 & 2: [a], specific type of joint: [b] Name of Bones 5 & 6: [c], specific type of joint: [d] Name of Bones 9 & 11: [e], specific type of joint: [f]
Refer to Figure 8. This figure shows two major joints of th…
Refer to Figure 8. This figure shows two major joints of the pectoral girdle & upper limbs. The joint in the TOP image connects the arm to the axial body. Compare this joint to the joint most similar to it in the pelvic girdle & lower limbs by completing the following blanks. Similar Pelvic Girdle Joint Name: [a] Compared to Pectoral Girdle Joint (top image in this figure) Name: [b] What is the structural classification of BOTH of these joints? What is the specific type of BOTH of these joints? [c]