Operating Systems Chapter 4

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/14

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

How many threads does a traditional, heavyweight process have?

One control thread

2
New cards

Provide at least three benefits of multithreaded programming.

1) Responsiveness

2) Resource sharing

3) Economy

4) Scalability

3
New cards

True or False? Concurrency is only possible with parallelism

False

4
New cards

True or False? Amdahl's Law addresses the disproportionate effect of the serial portion of a program.

True

5
New cards

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

6
New cards

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

7
New cards

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

8
New cards

True or False? Only Linux and Windows implement the one-to-one model.

True

9
New cards

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

10
New cards

What are the three main thread libraries in use?

POSIX Pthreads, Windows, Java

11
New cards

True or False? PThreads is typically only implemented on UNIX-like systems.

True

12
New cards

True or False? PThreads is only a specification, not an implementation.

True

13
New cards

What is the PThread API for creating a thread?

pthread_create()

14
New cards

What is the Windows API for creating a thread?

CreateThread()

15
New cards

Who's going to be at the Monday Night Suuuuper Slaaaaaaam?

John Cena