PCS - Part 2: Multiprocessor Architectures
PCS - Part 2: Multiprocessor Architectures
PCS - Part 2: Multiprocessor Architectures
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Programming Models: Multithreading<br />
Several threads run onto several processors under control of<br />
the operating system<br />
OS-specific thread functions, e.g. Solaris threads<br />
portability standard: POSIX-Threads, pthread library<br />
Basic functions:<br />
int pthread_create(pthread_t *thread,<br />
const pthread_attr_t *attr,<br />
void *(*start_routine)(void*),<br />
void *arg);<br />
void pthread_exit(void *value_ptr);<br />
int pthread_join(pthread_t thread, void **value_ptr);<br />
Peter Sobe<br />
<strong>PCS</strong> - <strong>Part</strong> 2: <strong>Multiprocessor</strong> <strong>Architectures</strong>