(操作系统教学课件)ch4Threads.ppt

* * * * * create a number of threads at process startup and place them into a pool, * #pragma omp parallel for Divide the loop * * * * * * * * * * * * * * * Grand Central Dispatch Apple technology for Mac OS X and iOS operating systems Extensions to C, C++ languages, API, and run-time library Allows identification of parallel sections Manages most of the details of threading Block is in “^{ }” - ?{ printf(I am a block); } Blocks placed in dispatch queue Assigned to available thread in thread pool when removed from queue Grand Central Dispatch Two types of dispatch queues: serial – blocks

文档评论(0)

1亿VIP精品文档

相关文档