GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

What is an Eaton locker differential designed to do?

What is an Eaton locker differential designed to do?

Read Details

Choose the correct statement from the following: 

Choose the correct statement from the following: 

Read Details

Final drive bearings are always adjusted so that they are:

Final drive bearings are always adjusted so that they are:

Read Details

A full floating axle shaft:

A full floating axle shaft:

Read Details

Setup. A user-space library runs three threads inside one pr…

Setup. A user-space library runs three threads inside one process and switches between them itself, so the kernel knows nothing about them and sees one task. The library does not wrap system calls, so each call goes straight to the kernel. Thread T1 calls read(), the data is not ready, and the call waits. Question. What can T2 and T3 do while T1 waits?

Read Details

Setup. Four threads each add 1 to one shared global variable…

Setup. Four threads each add 1 to one shared global variable, one million times each, so the expected total is 4,000,000. The figure shows one interleaving of two of those threads. Both read the counter while it holds 5, both compute 6 in their own registers, and both write 6 back. Measured. One run printed 1,311,526. Question. What was the effect on the counter?

Read Details

Setup. A program starts one thread with the call below, and…

Setup. A program starts one thread with the call below, and the variable tid it passes has type pthread_t. pthread_create(&tid, NULL, worker, &arg); Question. What is the first argument of that call for?

Read Details

Setup. A producer flow passes 100,000 records of 1 kB to a c…

Setup. A producer flow passes 100,000 records of 1 kB to a consumer flow, and the same job is built twice on one machine. Build 1 runs the two flows as separate processes, and the records travel through a pipe. Build 2 runs the two flows as two threads of one process, and the records sit in one shared array. Measured. Build 1 made 200,000 system calls to move the records, and it took 0.107 seconds. Build 2 made no system calls to move them, and it took 0.040 seconds. Question. In build 1, what do the two calls per record do?

Read Details

Hannah sues ABC Co., claiming that the company has failed to…

Hannah sues ABC Co., claiming that the company has failed to comply with the terms of a federal law. The lawsuit is filed in a state trial court that has the authority to resolve the dispute. The trial judge rules in favor of Hannah. If the judge’s decision is based on an incorrect interpretation of the law and ABC Co. wants the decision reviewed, ABC Co. should seek to have the case removed to federal court. 

Read Details

Sawyer sued Colin for allegedly violating the provisions of…

Sawyer sued Colin for allegedly violating the provisions of a federal statute. The lawsuit was filed in a Texas district court, which has subject matter jurisdiction. The trial judge rules in favor of Colin, concluding that the statute is unconstitutional and unenforceable. The court of appeals agrees, affirming the trial judge’s decision. Sawyer has filed a petition for writ of certiorari. If the constitutionality of the statute raises an issue of nationwide importance, Sawyer’s petition probably will be granted. 

Read Details

Posts pagination

Newer posts 1 … 20 21 22 23 24 … 98,686 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top