This morning QNX’s training has focused on processes and threads. I’ve had this as an interview question before.
How do you define process and thread.
What are some of the differences?
From QNX slides (not allowed to post).
Process: a program loaded into memory, it owns resources: memory, timers
Threads: single flow of execution or control. has attributes that have to do with running code: priority, scheduling,
A process must have at least one thread, threads run in a process. threads in a process share all the process resources
Threads run code, process own resources.