• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/6

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

6 Cards in this Set

  • Front
  • Back
What are the two scenarios where multithreading does not provide better performance than a single threaded solution when run on a machine where the number of available cores is greater than the number of threads in the multi-threaded solution.
-I/O bound program
-User-level threads
What are the two models of interprocess communication?
-Message Passing
Well defined interface between processes
Synch naturally handled between messages
Slower due to extra overhead.

-Shared Memory
Fast
Harder to program.
What is the Pthread function call to initialize a thread and begin its execution.
Pthread_create()
What is the pthread function call that waits for the thread to exit, reads the thread's return value, and cleans up its resources?
pthread_join()
Which pthread function call causes the resources for the thread to be automatically released when the thread completes.
pthread_detach()
How do Linux threads differ from UNIX threads?
Linux threads are processes. Linux chooses to use the clone() function to implement both pthreads and fork().