Showing posts with label Multi-thread. Show all posts
Showing posts with label Multi-thread. Show all posts

Monday, April 14, 2008

Parallel programming for multi-core CPU

I've finished reading this book. The book is sold in only Japanese, is written by FIXSTARS that is famous company about CELL programming, and explains how to start parallel programming with pthread and Wind32 thread API for the beginner. A little explanation about OpenMP and CELL is at the back of the book.

The book teaches data parallel, task parallel and pipe-line parallel to us though sample source code. Even if you have forgotten about pthread, you can recollect all. But, because Mac OS X doesn't implement sem_init(), it is impossible to practice a sample program about semaphore. However, these days, condition variable of pthread is used instead of semaphore, so that's no problem.

P.S.
This book is sold in only Japan. In addition, the world have many books that may be better than this book. But, I tried to write this entry to keep same content of my two blog if at all possible.

Sunday, March 23, 2008

Intel Threading Building Block

Intel Threading Building Block (TBB) is the C++ template library for parallel processing. That is made for PC applications. But, Intel had the speech about this at GDC. So Intel may think that TBB is useful for game programing. There is worth that we research this.

I heard about a part of TBB at GDC. I imagined that Intel Theading Building Block is the intel edition of SPURS and that's not useful for game console, because major game consoles don't have Intel CPU. But, TBB is independent library, tied to pthread and boost thread and usable with PowerPC architecture like Mac OS X.

TBB makes it possible to change Logical Task Programming to parallel processing. That's interesting very much. But, it's impossible to use the library with heterogeneous multi-core like PS3. There is a bit possibility to use it with Xbox 360.

TBB is dual licenses, you may use TBB freely by GPL. I bought the book published by O'Reily and read this for the time being.