100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
SER334 || with 100% Verified Solutions. $11.69   Add to cart

Exam (elaborations)

SER334 || with 100% Verified Solutions.

 3 views  0 purchase
  • Course
  • SER334 |
  • Institution
  • SER334 |

What is benefit responsiveness? and example correct answers allow a program to continue running even if part of it is blocked or is performing a lengthy operation, thereby increasing responsiveness to the user. GUI that uses separate thread to handle operations while remaining responsive to use...

[Show more]

Preview 2 out of 12  pages

  • August 2, 2024
  • 12
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • SER334 |
  • SER334 |
avatar-seller
FullyFocus
SER334 || with 100% Verified Solutions.
What is benefit responsiveness? and example correct answers allow
a program to continue running even if part of it is blocked or is performing a lengthy operation, thereby increasing responsiveness to the user.
GUI that uses separate thread to handle operations while remaining responsive to user.
What is benefit economy? correct answers Less resource overhead since you are not cloning.
Five challenges for multicore system programming? correct answers identifying tasks (independant functionality)
balance (each thread should do = work)
data splitting (memory if finite, only copy needed)
data dependency (some need to be done serial)
testing and debugging
two types of threads and what is the process of connecting them called correct answers user and kernel
Thread mapping
how are variables shared to threads correct answers global is available to all threads whereas local variables exist in a stack and all threads have their own stack so local variables sharing will need to be arranged.
asynchronous threading correct answers when the parent creates a child and both execute concurrently. Little to no data sharing so all threads are independant.
synchronous threading correct answers When the parent thread must wait for all child threats to terminate before resuming (fork-join). Has significant data sharing were the parent may combine results calculated from several child threads.
What states can a process be in? correct answers new (brought into memory)
ready (ready queue, waiting to run on cpu)
running (process is doing work on cpu)
waiting (I/O call or event wait)
termination (exit process)
process control block (pcb) correct answers The data structure used by the operating system to capture the entire state of a process
how does pcb allow the cpu to run programs concurrently? correct answers it saves the state of currently running process.
reloads the state of "to be ran" process
executes until interrupt or system call
saves the state reloads previous process
How to speed up memory management of task structs? correct answers Through the use of a task
struct pool of unused task structs for reuse.
Scheduling queues correct answers handled by a process scheduler to divide up resources for current processes.
ready queue correct answers processes ready for execution on cpu
device queue correct answers processes waiting to use a device/resource
from ready queue to cpu is called? correct answers dispatched
Would priority queues make sense for scheduling? correct answers No because a low priority process may never get to execute
what are the 3 types of schedulers? correct answers short-term (RAM)
Medium (swap)
Long (Disk)
what does wait() do? exit()? correct answers Waits for the child to finish. terminate process
what are reasons for cooperative processes? correct answers info sharing
computation speedup
modularity
convenience
instead of doing deep copy with fork() what can we do? correct answers on fork() make pcb2 point to the state of pcb1 to avoid having to pay resource cost of copying.
What problem does a shared memory system have? correct answers producer-consumer, needs to
use mutex or semaphore.
symmetric communication correct answers when the process needs to know who it is sending the
message to.
asymmetric communication correct answers the receiver will accept from anyone and record where it came from (pid)
blocking or synchronous correct answers waits for process to receive before continueing
non-blocking and asynchronous correct answers does not wait for process to receive before moving on
four key functions of shared memory correct answers shm_open - open new/create virtual file

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 $11.69. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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