{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Midterm Fall 2002

Midterm Fall 2002 - Midterm Fall 2002 Name Part 1 True...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Midterm Fall 2002 Name: Part 1. True False Questions Answer True/False (T/F) (1 point each) ____ A call to getenv() will show in the truss output. ____ A program that uses user-level threads will consume less system time than the same program using kernel threads. ____ execvp() will return a value of 0 if successful.. ____ If "a" is a local variable, then &a is a memory address in the stack section ____ The function strcpy(a, b) allocates strlen(a) + 1 bytes of memory using malloc. ____ By default pthread_create() creates user-level threads. ____ The user time in the time command is always smaller than the system time. ____ The close() system call always releases the resources of an open file object. ____ When a process calls fork(), the number of file descriptors in the parent process remain the same. ____ Programs that run non-preemptive scheduling finish sooner than programs that run with preemptive scheduling. ____ The OS checks the arguments of a system call in user space to save execution time. ____ The size in bytes of a variable of type (char *) is 4 bytes. ____ When a process exits, all the file descriptors of that process are closed. ____ The sum of the user and system time in a process could be larger than the real time. ____ After forking a process, a write call in the parent could modify the offset of an open file in the child.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern