Define process and thread and what are some major differences

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.

 

Advertisements
This entry was posted in Coding and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s