Week 3&4 - Operating Systems Flashcards

1
Q

What is a thread?

A

A single or smallest sequence of instructions executed by the CPU.
It is a basic unit of CPU utilization comprising:
Thread ID
Program counter
Set of registers
Stack (stores local variables)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is multi-threading?

A

A program execution technique that allows multiple threads to be executed simultaneously.
Multiple threads within a single process.
Comprises:
ID
Program counter
Set of registers
Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the challenges in developing multi-threaded applications?

A
Challenges in multicore or multiprocessor systems: 
Dividing activities
Balance
Data splitting
Data dependency
Testing and debugging
How well did you know this?
1
Not at all
2
3
4
5
Perfectly