1/14
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
How many threads does a traditional, heavyweight process have?
One control thread
Provide at least three benefits of multithreaded programming.
1) Responsiveness
2) Resource sharing
3) Economy
4) Scalability
True or False? Concurrency is only possible with parallelism
False
True or False? Amdahl's Law addresses the disproportionate effect of the serial portion of a program.
True
List at least three challenges when designing programming for multicore systems.
1) identifying tasks
2) balance
3) data splitting
4) data dependency
5) testing and debugging
What are the two general types of parallelism?
1) Data parallelism - distributing subsets of data across multiple computing cores and performing same operation on each core
2) Task parallelism - distributing tasks across multiple cores where each thread is performing a unique operation
List the three common ways of mapping user threads to kernel threads.
1) ManytoOne Model - many user threads to one kernel thread
2) OnetoOne Model - one user thread to one kernel thread 3) ManytoMany Model - many user threads to smaller or equal kernel threads
True or False? Only Linux and Windows implement the one-to-one model.
True
What are the two approaches for implementing a thread library?
1) To provide a library entirely in user space with no kernel support not system call
2) To implement kernellevel library support through code and data on the library API
What are the three main thread libraries in use?
POSIX Pthreads, Windows, Java
True or False? PThreads is typically only implemented on UNIX-like systems.
True
True or False? PThreads is only a specification, not an implementation.
True
What is the PThread API for creating a thread?
pthread_create()
What is the Windows API for creating a thread?
CreateThread()
Who's going to be at the Monday Night Suuuuper Slaaaaaaam?
John Cena