Octeon多核处理器介绍

上传人:ji****72 文档编号:46500718 上传时间:2018-06-26 格式:PDF 页数:39 大小:398.03KB
返回 下载 相关 举报
Octeon多核处理器介绍_第1页
第1页 / 共39页
Octeon多核处理器介绍_第2页
第2页 / 共39页
Octeon多核处理器介绍_第3页
第3页 / 共39页
Octeon多核处理器介绍_第4页
第4页 / 共39页
Octeon多核处理器介绍_第5页
第5页 / 共39页
点击查看更多>>
资源描述

《Octeon多核处理器介绍》由会员分享,可在线阅读,更多相关《Octeon多核处理器介绍(39页珍藏版)》请在金锄头文库上搜索。

1、Cavium OCTEON multi-core Network Service ProcessorCavium Octeon 多核处理器介绍自我介绍?lyxmoo IN networld?牟官迅 ?return NULL;?int main() ?pthread_t tid;?Pthread_create(?Pthread_join(tid, NULL);?exit(0);?Execution of Threaded“hello, world”main threadmain thread waits for peer thread to terminateexit() terminates

2、main thread and any peer threadspeer threadCall Pthread_create()call Pthread_join()Pthread_join() returnsprintf()return NULL; (peer thread terminates)Pthread_create() returnsthread handle resuseThe following code IS correctpthread_t tNUM_THREAD; int i;for (i=0; ii = 0; arg-x = 3; pthread_create( arg

3、-x = 4; / recycling of memory! pthread_create( . pthread_join(t1,NULL); pthread_join(t2,NULL); Sharing Global variablesSharing global variables is dangerous - two threads may attempt to modify the same variable at the same time.And filehandle.Thread exit.Once a thread is created, it starts executing

4、 the function func()specified in the call to pthread_create().If func()returns, the thread is terminated.A thread can also be terminated by calling pthread_exit().If main()returns or any thread calls exit()all threads are terminated.参考资料?See MIPS run?MIPS64(TM) 20Kc(TM) Processor Core Users Manual?M

5、IPS Software Users Manual?MIPS32(TM) Architecture For Programmers?Volume I: Introduction to the MIPS32(TM) Architecture?Volume II: The MIPS32(TM) Instruction Set?Volume III: The MIPS32(TM) Privileged Resource Architecture?OpenSPARCT1_1.0.1?ELDK?opencores miniMIPS?PCSpim simulator for MIPS R2000/R3000url???opencores.org

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号