單項(xiàng)選擇題task_struct結(jié)構(gòu)體用來(lái)保存()。

A.會(huì)話的環(huán)境
B.任務(wù)的基本信息
C.進(jìn)程的PCB
D.文件的基本信息


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題setsid函數(shù)用來(lái)設(shè)置進(jìn)程的()。

A.父進(jìn)程號(hào)
B.進(jìn)程號(hào)
C.會(huì)話號(hào)
D.進(jìn)程組號(hào)

3.單項(xiàng)選擇題

對(duì)以下程序運(yùn)行成功時(shí)描述正確的是()。
#include < stdio.h>#include < stdlib.h>#include < unistd.h>#include < sys/types.h>main() { pid_t pid; if((pid=fork())==-1) { perror(“fork”); exit(EXIT_FAILURE); } printf(“hello\\n”); return 0;}

A.只有父進(jìn)程輸出一個(gè)hello
B.父進(jìn)程先輸出一個(gè)hello,子進(jìn)程再輸出一個(gè)hello
C.父子進(jìn)程各輸出一個(gè)hello
D.只有子進(jìn)程輸出一個(gè)hello

4.單項(xiàng)選擇題

關(guān)于如下命令和其結(jié)果,不正確的敘述是?()
root@ubuntu:~# ls / -ail2 drwxr-xr-x 23 root root 4096 3月24 16:07 .2 drwxr-xr-x 23 root root 4096 3月24 16:07 ..3407873 drwxr-xr-x 2 root root 4096 10月28 2015 bin

A.bin是目錄
B.bin目錄的所有者是root、用戶所屬組是root
C.當(dāng)前目錄是不是根目錄
D.3407873是bin的inode結(jié)點(diǎn)編號(hào)