{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

25 may 2012 processes threads 5 university of

Info icon This preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: n the process isn’t running   PC, SP, registers, etc.   when a process is unscheduled, the state is transferred out of the hardware into the PCB   (when a process is running, its state is spread between the PCB and the CPU)   Note: It’s natural to think that there must be some esoteric techniques being used   fancy data structures that you’d never think of yourself Wrong! It’s pre5y much just what you’d think of! 25 May 2012 Processes & Threads 5 University of Washington The PCB   The PCB is a data structure with many, many fields:                     process ID (PID) parent process ID execuMon state program counter (IP), stack pointer, registers address space info UNIX user id, group id scheduling priority accounMng info pointers for state queues In Linux:   defined in task_struct (include/linux/sched.h)   over 95 fields!!! 25 May 2012 Processes & Threads 6 University of Washington Process ID Pointer to parent List of children This is (a simplification of) what each of those PCBs looks like ins...
View Full 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