摘要:
参考 http://www.cnblogs.com/hnrainll/archive/2011/08/17/2142001.html 在Linux中进程退出分为了正常退出和异常退出两种。 1>正常退出 a. 在main()函数中执行return 。 b.调用exit()函数 c.调用_exit()函 阅读全文
posted @ 2017-01-09 01:06
blcblc
阅读(1379)
评论(0)
推荐(0)
摘要:
参考这篇文章 http://blog.chinaunix.net/uid-27761170-id-5050258.html 代码如下: 这段代码将使myfun线程在所有cpu中依次执行一段时间,在我的四核cpu上,执行结果为 : system has 4 processor(s) thread 10 阅读全文
posted @ 2017-01-09 00:50
blcblc
阅读(1850)
评论(0)
推荐(0)

浙公网安备 33010602011771号