logo

Crowdly

Browser

Додати до Chrome

TI504M - Computer Architecture and Operating Systems

Шукаєте відповіді та рішення тестів для TI504M - Computer Architecture and Operating Systems? Перегляньте нашу велику колекцію перевірених відповідей для TI504M - Computer Architecture and Operating Systems в efreussite.fr.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

What is the PID of the parent process?

0%
0%
0%
0%
0%
0%
Переглянути це питання

The previous program displays the following output:

hdd@lea:~$ ./a.out

Is the display below correct:

13237

13237 13238

13237 13238 13239

13237 13238 13239 13240

13237 13238 13239 13240 13241

0%
0%
Переглянути це питання

Which process executes the last for loop containing the calls to waitpid()?

0%
0%
0%
Переглянути це питання

In this program:

0%
0%
0%
Переглянути це питання

What is the PID of the last created child?

0%
0%
0%
0%
0%
0%
Переглянути це питання

The execution time of the program is:

0%
0%
0%
0%
Переглянути це питання

What is the PID of the first created child?

0%
0%
0%
0%
0%
0%
Переглянути це питання

Under the SHELL, how many input/output streams are there?

0%
0%
0%
0%
0%
Переглянути це питання

The following code:

char* myreader(int fd){ 

    int cmp = 0;

    char c;

    while(read(fd, &c, 1) == 1 && c!= '\n') cmp++;

    char *ch = (char*) malloc (cmp+1);

    lseek(fd, 0, SEEK_SET);

    read(fd, ch, cmp);

    ch[cmp] = 0;

    return ch;

}

0%
0%
0%
0%
Переглянути це питання

Determine the value of x in the following program:

int main() {

    int x = 1;

    int pid = fork();

    if (pid != 0) {

        printf("x=%d\n", ++x);

        exit(0);

    }

    printf("x=%d\n", --x);

    exit(0);

}

0%
0%
0%
0%
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на efreussite.fr?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome