Chapter 7. Processes

Errata


Total entries: 6

7.684.16:28

LocationPage 684, The sidebar titled "The Earliest fork() and exec() System Calls", the 5th line of the sidebar.
ReporterAnonymous, on July 8, 2006.
Instead of "location of the fact" the line should begin with "location and the fact".

7.774.12:14

LocationPage 774, Section 7.4, the first paragraph of the section, the 4th line from the bottom.
ReporterAvi Drissman, on July 12, 2006.
Instead of timslicing, it should be timeslicing.

7.776.16:47

LocationPage 776, Figure 7—38, near the left-middle of the figure.
ReporterAnonymous, on July 8, 2006.
The pathname for idle_thread_create is shown as // osfmk/kern/thread.c. The pathname should be // osfmk/kern/sched_prim.c.

7.780.16:51

LocationPage 780, The two-item bullet list below Figure 7—39, the second item in the list.
ReporterAnonymous, on July 8, 2006.
Instead of "rtclock_timer_expire() function pointer" it should be "rtclock_timer_expire function pointer". That is, the parentheses should not be there in rtclock_timer_expire().

7.803.17:00

LocationPage 803, The paragraph just before Figure 7—53.
ReporterAnonymous, on July 8, 2006.
The paragraph describes what the program in Figure 7—53 does. However, the description is for an older version of the program, which was replaced by the one in the printed book—I forgot to update the description. The 3rd, 5th, and 6th sentences of this paragraph should be changed as follows.

Current 3rd Sentence:

Both threads run a function that continuously prints a thread label—the first thread prints the character 1 whereas the second thread prints 2.

Change To:

Both threads run a function called adder() that continually increments a counter provided to it as an argument.

Current 5th Sentence:

The program runs for a few seconds, with both threads printing their labels on the standard output.

Change To:

The program runs for a few seconds, with the counters of both threads being incremented as the threads receive processing time.

Current 6th Sentence:

We can pipe the output through the awk command-line tool to count how many times 1 and 2 were printed, which will indicate the respective amounts of processing time the two threads received.

Change To:

Before exiting, the program prints the values of both threads' counters. The values will be crude indicators of the respective amounts of processing time that the two threads received.

7.805.12:12

LocationPage 805, Section 7.4.3.4, the first paragraph of the section, the second-to-last line of the paragraph.
ReporterAvi Drissman, on July 12, 2006.
Instead of preemtible it should be preemptible.