100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COP4610 Exam 1 with verified solutions graded A+ $19.99   Add to cart

Exam (elaborations)

COP4610 Exam 1 with verified solutions graded A+

 7 views  0 purchase
  • Course
  • COP4610
  • Institution
  • COP4610

COP4610 Exam 1 with verified solutions graded A+

Preview 4 out of 79  pages

  • September 1, 2024
  • 79
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COP4610
  • COP4610
avatar-seller
kirus27
COP4610 Exam 1, COP4610, COP 4610
Exam 1, COP4610

Operating system - correct answer ✔✔- Acts as an intermediary between the user and the computer
hardware.

- Software that manages the computer hardware.

- Purpose is to provide an environment in which a user can execute programs in a convenient and
efficient manner.

- A virtual machine that hides the complexity and limitation of hardware from application programmers



History Phase I: Expensive Hardware, Cheap Humans - correct answer ✔✔Hardware: mainframes

OS: human operators

- Handle one job (a unit of processing at a time.

- Computer time wasted while operators walk around the machine room.



Batch system - correct answer ✔✔Collects a batch of jobs before processing them and printing out
results.

- collection, processing, and printing out results can occur concurrently.



Job - correct answer ✔✔A unit of programming



Batch System - correct answer ✔✔Collects a batch of jobs before processing them and printing out
results



Timeshares - correct answer ✔✔Each user can afford to user terminals to interact with machines



OS Design goals: - correct answer ✔✔Efficient use of the hardware



More efficient use of human resources

,Allow a user to perform many tasks at one time



Ease of resource sharing between machines



Four phases of OS history - correct answer ✔✔Hardware expensive, humans cheap



Hardware cheap, humans expensive



Hardware very cheap, humans very expensive



Distributed systems



Multiprocessing - correct answer ✔✔The ability to use multiple processors on the same machine



Multitasking - correct answer ✔✔Ability to run multiple programs on the same machine



Multiprogramming - correct answer ✔✔Multiple programs can run concurrently



Benefits of concurrency - correct answer ✔✔Can run multiple programs simultaneously



Better resource utilization



Better average response time



Better performance



Thread - correct answer ✔✔A sequential execution stream

,Address space - correct answer ✔✔Contains all necessary states to run a program



Process - correct answer ✔✔An address space and at least one thread of execution



Difference between process and program - correct answer ✔✔A program is just a collection of
statements, a process is a running instance of a program.



Uniprogramming - correct answer ✔✔Running one process at a time



Multithreading - correct answer ✔✔having multiple threads per address space



Dispatching loop - correct answer ✔✔Run thread

Save States

Choose new thread

Load states from new thread



Context switch - correct answer ✔✔Switching the CPU from one thread/process to another



Thread state diagram - correct answer ✔✔Ready -> Running -> Blocked ->Ready etc.



Ready-> Running: Scheduled

Running-> Ready: yield, timer

Running -> Blocked: I/O request

Blocked -> Ready: IO complete



Amdahl's Law - correct answer ✔✔S = %of sequential computations

N = cores



x = 1/(S + (1-S/N))

, Booting sequence - correct answer ✔✔Jump

Load from BIOS

POST

Load MBR

Load OS loader

Load kernel image

sets kernel mode

Jump



System call - correct answer ✔✔Allows processes running in user mode to access kernel functions that
run under kernel mode



Kernel Mode - correct answer ✔✔Used for lowest level functions of operating system. Executing code
has unrestricted access to hardware



User mode - correct answer ✔✔Executing code has no way to directly access or modify hardware or
reference memory



Master Boot Record - correct answer ✔✔Information in the first sector of memory that identifies how
and where to boot the OS



System call sequence - correct answer ✔✔User level: Trap

Kernel Level: Set kernel mode

Branch table

Run trusted code



Process creation - correct answer ✔✔fork(): Clones the process



exec: overwrites current process

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 $19.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
$19.99
  • (0)
  Add to cart