100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COSC 3360 Exam 1 || A+ Guaranteed. $10.79   Add to cart

Exam (elaborations)

COSC 3360 Exam 1 || A+ Guaranteed.

 1 view  0 purchase
  • Course
  • COSC 3360
  • Institution
  • COSC 3360

Main disadvantage of delayed writes correct answers Will result in a data loss if the system crashes at the wrong time Main advantage of dual-mode CPUs correct answers Prevent user processes from directly accessing disk drives and other peripherals Main advantage of timer interrupts correct a...

[Show more]

Preview 2 out of 6  pages

  • August 20, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COSC 3360
  • COSC 3360
avatar-seller
FullyFocus
COSC 3360 Exam 1 || A+ Guaranteed.
Main disadvantage of delayed writes correct answers Will result in a data loss if the system
crashes at the wrong time

Main advantage of dual-mode CPUs correct answers Prevent user processes from directly
accessing disk drives and other peripherals

Main advantage of timer interrupts correct answers Prevent user processes from monopolizing a
CPU core

Main advantage of DMA controllers correct answers Speed up data transfers between the disk
drive and the main memory

Main advantage of lightweight processes correct answers Are much cheaper to create than
conventional processes

Main disadvantage of microkernals correct answers Introduce additional context switch delays in
the processing of requests

Main advantage of modular kernels correct answers Let users add new features to the kernal

Main advantage of time sharing correct answers Allows multiple interactive users to share the
same computer

Main advantage of multi-threaded servers correct answers Can process multiple client requests in
parallel

How can we prevent processes from accessing the address spaces of other processes and prevent
user processes from tampering with the kernel correct answers By adding memory protection

In a dual-mode CPU, how can the CPU switch from user mode to privileged mode correct
answers When it processes an interrupt (as the interrupt will leave the program counter in a safe
location INSIDE the kernel

What is the main difference between real-time applications with hard and soft deadlines? correct
answers Missing a hard deadline can have catastrophic consequences while missing a soft
deadline is a mere inconvenience

What would have happened if UNIX had remained written in assembly language correct answers
It would not have been ported to other architectures and would NOT have had the same impact

Why is fork() one of the costliest system calls? correct answers It requires making a copy of the
address space of the forking process

In which state is a process performing a disk I/O? correct answers In a WAITING STATE

, In which state is a process waiting for a core? correct answers In the READY STATE

How would you let a program read its standard input from the file input.txt correct answers fh =
open("data.txt", O_RDONLY);
close(0); // close stdio
dup(fh); //duplicate fh into stdio
close(fh);

Add the two system calls that will ensure that the program will print exactly once Hello World!
and Goodbye! in that order correct answers int main()
{
if (fork(0) == 0) {
printf("Hello World!\n");
_exit(0);
}
wait(0);
printf("Goodbye!\n");
}

What is the default action that a UNIX process takes when it receives a signal?
What can it do to prevent that from happening?
Is this always possible? correct answers -The process terminates
-The process can catch the signal
-NO, the SIGKIL signal cannot be caught, and signal number nine cannot be caught

Which events will bring a RUNNING process into a WAITING state? correct answers The
process issues a (blocking) system request

Which events will bring a WAITING process into the READY queue? correct answers The
completion of a pending system request

dup() correct answers Creates a duplicate of a given file descriptor

execv() correct answers Loads in memory the program to be executed by a given process

fork() correct answers Creates a new process

kill() correct answers Sends a signal to another process

lightweight processes correct answers Share the address space of their parent

microkernels correct answers Delegate most of their duties to user-level servers

pipe correct answers Used to send the standard output of a process to the standard input of
another one

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 FullyFocus. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80796 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
$10.79
  • (0)
  Add to cart