English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-07-01 14:46:28 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

> On a multiprocessor system, threading > can be achieved via multiprocessing, >wherein different threads can run >simultaneously on different processors.

I understand that. I was wondering if this can be done ny using pthreads indide a single process.

2006-07-01 17:14:09 · update #1

2 answers

On a multiprocessor system, threading can be achieved via multiprocessing, wherein different threads can run simultaneously on different processors.

Multiple threads typically share the state information of a single process, and share memory and other resources directly. Context switching between threads in the same process is typically faster than context switching between processes.

So your answer would be yes but would be slower and expensive.

2006-07-01 16:01:06 · answer #1 · answered by ? 6 · 0 0

That depends on the threads.

2006-07-01 21:49:38 · answer #2 · answered by Natedogg 2 · 0 0

fedest.com, questions and answers