CPSC 351 Final

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

9 Terms

1
New cards

What is a thread?

Basic unit of CPU utilization

2
New cards

Difference between thread and process?

Process is used for grouping resources together. Thread is part of process that runs on CPU.

3
New cards

Advantage of using threads over processes?

Creating a new thread is much less overhead than creating a new process.

4
New cards

Benefits of multithreading?

Much more responsive, can execute in parallel

5
New cards

Which multithreading models provide true parallelism?

One-to-one and Many-to-Many

6
New cards

how are threads affected by fork() and exec()?

  • fork()one thread survives (the caller)

  • exec()no threads survive

7
New cards

what is a semophore?

A construct to allow only one thread or process at a time. ie mutex

8
New cards

what is starvation?

A process is never removed from the semaphore which it waits

9
New cards