Quiz on IPC and Synchronization

Quiz on IPC and Synchronization

University

16 Qs

quiz-placeholder

Similar activities

NTRFAN

NTRFAN

University

20 Qs

MakeCode Arcade Questions

MakeCode Arcade Questions

10th Grade - University

15 Qs

Operating System Unit 2

Operating System Unit 2

University

20 Qs

Introduction to Cybersecurity Quiz

Introduction to Cybersecurity Quiz

9th Grade - University

15 Qs

Join by Madi

Join by Madi

University

15 Qs

quizizz P. Web

quizizz P. Web

11th Grade - University

20 Qs

Understanding Digital Footprints

Understanding Digital Footprints

6th Grade - University

15 Qs

System Administration Quiz

System Administration Quiz

University

20 Qs

Quiz on IPC and Synchronization

Quiz on IPC and Synchronization

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Tung Doan

Used 5+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 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 should 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);

you don’t have to close anything

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, 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, if p is full

write(p[0] …) will block

write(p[1] …) will block

read(p[0]…) will block

read(p[1]…) will block

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?