EXAM.docx - 1 2 Real user ID is set when the user logs into the system and is the account of the owner of the current process Effective user ID is the

EXAM.docx - 1 2 Real user ID is set when the user logs into...

This preview shows page 1 - 2 out of 2 pages.

1.) 2.) Real user ID is set when the user logs into the system and is the account of the owner of the current process. Effective user ID is the same as the real user ID unless setuid is used to enable the user to access files that they would normally not have access to such as root files. Setuid is used to give the owner of the process access to non-permitted files by changing their effective user ID to one that has permission to access said files 3.) // interestedA and turn are global // OK to enter critical region? interestedA = TRUE; turn = 0; // global variable
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

Unformatted text preview: while (turn == 0 && interestedB == TRUE) ; // enter region …. use shared objects …. // exit region interestedA = FALSE; // out of critical region // interestedB and turn are global // OK to enter critical region? interestedB = TRUE; turn = 1; // global variable while (turn == 1 && interestedA == TRUE) ; // enter region …. use shared objects …. // exit region interestedB = FALSE; // out of critical region 4.) a) P1 P2 P3 P1 P4 P2 P2 0 3 6 7 10 13 16 18 b) P3 P2 P1 P4 1 9 15 18 c) P1 P2 P3 P4 6 14 15 18 d) P1 P3 P2 P4 6 7 15 18...
View Full Document

  • Fall '13
  • Franco

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

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes