Linux USES the pthread library call pthread_create to spawn a thread.
Linux使用pthread库调用pthread_create来派生线程。
In other words, the system allocates at least 10mb of private storage for each pthread.
换言之,系统为每个pthread分配至少10MB的专用存储。
Instead of providing an abstraction of logical SPUs, this interface is thread-oriented and behaves in a similar way to the pthread library.
这个接口并不是提供一个逻辑spu的抽象,而是面向线程的,它的工作方式与pthread库类似。
I further tested this simple Pthread code on the PPE to see how it scales with an increasing number of threads.
我在PPE上进一步测试了这个简单的Pthread代码,以此了解随着线程数量的增加它的性能变化情况。
TestThread itself is a Pthread that runs using first-in, first-out (FIFO) policy at rtmax-1 so that it won't be interfered with during the testing.
testThread本身是一个Pthread,它使用先进先出(FIFO)策略以rtmax - 1优先级运行,所以它在测试期间不会造成干扰。
Sequential iteration: the Fibonacci sequence code is called iteratively multiple times to match the number of workers that were executed in the SPE and Pthread tests above.
序列迭代:多次调用Fibonacci序列代码,从而与上面的SPE和Pthread测试中执行的工作者线程匹配。
Sequential iteration: the Fibonacci sequence code is called iteratively multiple times to match the number of workers that were executed in the SPE and Pthread tests above.
序列迭代:多次调用Fibonacci序列代码,从而与上面的SPE和Pthread测试中执行的工作者线程匹配。
应用推荐