IPC and scheduling

IPC and scheduling

Professional Development

8 Qs

quiz-placeholder

Similar activities

PTA FI 3.0

PTA FI 3.0

Professional Development

9 Qs

Validation User Role/Priv Menu Binary Content

Validation User Role/Priv Menu Binary Content

Professional Development

8 Qs

LATIHAN ASAS CANVA

LATIHAN ASAS CANVA

Professional Development

8 Qs

Industria 4.0

Industria 4.0

Professional Development

5 Qs

QUIZ IT HSSE MONTHLY MEETING - EDISI KEMERDEKAAN

QUIZ IT HSSE MONTHLY MEETING - EDISI KEMERDEKAAN

Professional Development

11 Qs

OPTIK SMP 2024 REDTOP JAKARTA

OPTIK SMP 2024 REDTOP JAKARTA

Professional Development

10 Qs

HTML Fundamentals Assessment

HTML Fundamentals Assessment

Professional Development

10 Qs

PYTHON QUIZ

PYTHON QUIZ

Professional Development

10 Qs

IPC and scheduling

IPC and scheduling

Assessment

Quiz

Information Technology (IT)

Professional Development

Practice Problem

Easy

Created by

Tuan Minh

Used 50+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

8 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

The dup2(oldfd, newfd) function

redirect IO on oldfd so that they are performed on newfd

redirect IO on newfd so that they are performed on oldfd

copies the file descriptor oldfd into the file descriptor newfd

copies the file descriptor newfd into the file descriptor oldfd

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

If I call dup2(fd,0) with fd being an opened file

everything read from STDIN is written to the file

everything read from STDIN is read from the file

the file shoud be opened in read mode

the file should be opened in write mode

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

When you create a pipe p

communication goes from p[1] to p[0]

communication goes from p[0] to p[1]

you can read from p[0]

you can read from p[1]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After a dup2(p[0], 0);

you must close(p[0]);

you must close(0); (-10)

you don't have to close anything (-10)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The shmat() function

allow to create a shared memory segment

allow to attach a shared memory segment in an address space

allow to find the location of a shared memory segment

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

with a pipe p, if p is empty

write(p[0] ...) will block

write(p[1] ...) will block

read(p[0] ...) will block

read(p[1] ...) will block

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

with a pipe p, if p is full

write(p[0] ...) will block

write(p[1] ...) will block

read(p[0] ...) will block

read(p[1] ...) will block

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?