sched3.c
来自「geekos 0.3.0简单的操作系统」· C语言 代码 · 共 21 行
C
21 行
#include <conio.h>#include <process.h>#include <sched.h>#include <sema.h>#include <string.h>int main( int argc , char ** argv ){ int holdsched3_sem; holdsched3_sem = Create_Semaphore("holdsched3_sem",0); P(holdsched3_sem); Print("3"); V(holdsched3_sem); Destroy_Semaphore(holdsched3_sem); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?