GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

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.

Read Details

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();      write_to_pipe(pipe2, “msg1”);      receive_from_pipe(pipe1);      horse();      waterfall();      write_to_pipe(pipe1, “msg3”);      receive_from_pipe(pipe1); }   void thread2() {      dog();      write_to_pipe(pipe1, “msg2”);      receive_from_pipe(pipe2);      cat();      write_to_pipe(pipe1, “msg4”); }

Read Details

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)

Read Details

Refer to Figure 9.  There is a special joint in the hand tha…

Refer to Figure 9.  There is a special joint in the hand that allows the human thumb to ‘oppose’ – opposable thumbs allow us to grab and hold better than some other mammals.  Name the specific type of joint that makes our thumbs opposable: [a] Identify the structural classification of this joint: [b] Name the two bones that form this joint (be as specific as possible!): [c]

Read Details

Refer to Figure 13.  Name a muscle that performs the followi…

Refer to Figure 13.  Name a muscle that performs the following actions AND include the Number that labels it on the figure.  1. FLEXES the FINGERS. Muscle Name & Number: [a] 2. EXTENDS the WRIST. Muscle Name & Number: [b]

Read Details

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 and the SPECIFIC TYPE of JOINT between them. Name of Bones 2 & 3: [a], specific type of joint: [b] Name of Bones 9 & 11: [c], specific type of joint: [d] Name of Bones 10 & 12: [e], specific type of joint: [f]

Read Details

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]

Read Details

Mark True or False for each statement below. 1. In modern op…

Mark True or False for each statement below. 1. In modern operating systems, data exchange between the user and an I/O device always bypasses the kernel. [1] 2. Programmed I/O with polling requires the CPU to continuously check if a device is ready for data transfer. [2] 3. Interrupts allow a device to notify the CPU when it is ready, which is more efficient than polling. [3] 4. In Direct Memory Access (DMA), the CPU directly manages data transfers between memory and the I/O device. [4] 5. In a programmed I/O interrupt-driven approach, the CPU is blocked until the device has completed its task. [5]

Read Details

Mark True or False for each statement below. 1. The Dining P…

Mark True or False for each statement below. 1. The Dining Philosophers problem is used to demonstrate the pattern of circular deadlock in concurrent programming. [1] 2. In the Producer-Consumer problem, data is persistent and can be read multiple times and rewritten when necessary. [2] 3. In the Producer-Consumer problem, multiple producers and consumers should be able to access the buffer concurrently. [3] 4. The Readers-Writers problem deals with concurrent access to a bounded buffer where data is consumed as soon as it is read. [4] 5. In the Producer-Consumer problem, semaphores can be used to prevent corrupt shared variables and avoid race conditions. [5]

Read Details

Mark True or False for each statement below. Kernel-space…

Mark True or False for each statement below. Kernel-space threads can have threads with different states (e.g., ready, blocked). [1] Threads in a multithreaded process share code, data, and file descriptors, but have their own register information and stack. [2] User-space threads are managed by the operating system’s scheduler. [3] User-space threads can block the entire process if one thread requests a blocking operation. [4] Each process in a kernel-space multithreaded system has a separate thread table for managing threads. [5]

Read Details

Posts pagination

Newer posts 1 … 28,996 28,997 28,998 28,999 29,000 … 88,149 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top