100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COP4610 Midterm 2 study guide questions n correct answers $12.99   Add to cart

Exam (elaborations)

COP4610 Midterm 2 study guide questions n correct answers

 3 views  0 purchase
  • Course
  • COP4610
  • Institution
  • COP4610

COP4610 Midterm 2 study guide questions n correct answers

Preview 2 out of 6  pages

  • September 1, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COP4610
  • COP4610
avatar-seller
kirus27
COP4610 Midterm 2 study guide

What are the Three Process schedulers used for process management? - correct answer ✔✔Job
Scheduler

Process Scheduler

Overload handler or Scheduler



What are the tasks of the the three process schedulars? - correct answer ✔✔Job Scheduler- Highest
Priority, job queue pick a job from this queue for the CPU, form/sequence the jobs, keeping track of I/O
requirement for all jobs.



Process scheduler- Closest to the process, Gives a process to the CPU to run (for all processers) , picks up
the process to be scheduled next for the CPU



Overload Handler or scheduler- If too many processes for the resources moves them to storage,
temporary, move back later ( (RAM -> HDD

^____________|)



What is the Process State Diagram? - correct answer ✔✔Starts at "new", then goes to "ready", then goes
to "run", then either go to "exit" if the process is finished, go back to "ready" if the process gets
preempted, or go to "wait" if I/O call blocks the process, which would go back to "ready" when the I/O is
completed.



what are the different process states in a process state diagram? - correct answer ✔✔Held, Swapped
Ready, Ready, Running, Blocked, Swap Blocked, and Terminated

(New, Ready, Running, Terminated, Waiting. in the simpler model)



Which of the below are valid transitions in a process state diagram?

Ready->Running

Ready->Terminated

Running -> Blocked

, Ready -> Swapped Blocked

Swapped Blocked -> Ready - correct answer ✔✔Ready -> Running - Valid

Ready -> Terminated - Invalid

Running -> Blocked - Valid

Ready -> Swapped Blocked - Invalid

Swapped -> Ready - Invalid



What is PID? - correct answer ✔✔Process ID



What is a Process control block? - correct answer ✔✔Located in OS area of memory , contains PID,
Process status, registers, Process status word (PSW), Priority #, and resources(I/O, Files, Network Access)



What is an interrupt? - correct answer ✔✔Signal from hardware or software indicating that an event has
occurred or that a process needs attention.



What are interrupts we have discuessed? - correct answer ✔✔Timer Run out (TRO)



What is an interrupt service routine? - correct answer ✔✔run a timer -> starts ----> runs-> elapses -> an
interrupt -> TRO

-> CPU -> Switch to Another Process



Can Interrupts be generated by software? - correct answer ✔✔Yes



Why, when, and how does a context switch happen? - correct answer ✔✔Switching over the CPU to a
new process. Save the state of present process, load the state of the new process, and where is it saved?
(the Process control block)



what are the basic difference between I/O bound and CPU bound jobs? - correct answer ✔✔I/O bound
jobs- Lots of I/O, not much of CPU's attention required



CPU bound job- Lots of CPU involvement, number crunching logical operation, low on I/O

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller kirus27. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

82871 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.99
  • (0)
  Add to cart