文件名称:pthread.c
介绍说明--下载内容均来自于网络,请自行研究使用
利用pthread,使用者在命令列輸入,程序將產生一個個別行程產生費式數目,置串列為資料型態且被執行緒共享.當執行緒完成執行,由父行程輸出子行程的串列.因為父行程不再一開始就輸出費氏序列,需等待子行程完成
命令列:
gcc hw2.c -lpthread-Use pthread, the user at the command line input, the program will produce a resulting fee amount for the individual trip, set serial for the data types which have been threaded to share. When the thread to complete execution, the output sub-trip travel from the parent serial . because the parent is no longer a journey' s beginning sequence of the output charge is required to wait for child process to complete the command line: gcc hw2.c-lpthread
命令列:
gcc hw2.c -lpthread-Use pthread, the user at the command line input, the program will produce a resulting fee amount for the individual trip, set serial for the data types which have been threaded to share. When the thread to complete execution, the output sub-trip travel from the parent serial . because the parent is no longer a journey' s beginning sequence of the output charge is required to wait for child process to complete the command line: gcc hw2.c-lpthread
(系统自动生成,下载前可以参看下载内容)
下载文件列表
pthread.c