⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hello.c

📁 Pthreads是Intel开发的Linux下的多线程编译工具
💻 C
字号:
#include <stdio.h>#include <pthread.h>#define NUMTHREADS 4void *helloFunc(void *pArg) {    printf("Hello Thread\n"); }main() {	   pthread_t hThread[NUMTHREADS];   for (int i = 0; i < NUMTHREADS; i++)       pthread_create(&hThread[i], NULL, helloFunc, NULL);   for (int j = 0; j < NUMTHREADS; j++)       pthread_join(hThread[j], NULL);   return 0; }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -