X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fthreads.texi;h=a79e474b68bf2efef7d05631dce161a45a24b9c9;hb=35692cf4733c0761f25dc17153eeaf8a64c1e0ee;hp=bc2ccb548de6c278b0085b4bf08a098d3dcca4b5;hpb=251b51f76f0594460e1cfbf2c05576fb445b861b;p=pintos-anon diff --git a/doc/threads.texi b/doc/threads.texi index bc2ccb5..a79e474 100644 --- a/doc/threads.texi +++ b/doc/threads.texi @@ -157,9 +157,9 @@ the kernel. Basic interrupt handling and functions for turning interrupts on and off. -@item intr-stubs.S +@item intr-stubs.pl @itemx intr-stubs.h -Assembly code for low-level interrupt handling. +A Perl program that outputs assembly for low-level interrupt handling. @item synch.c @itemx synch.h @@ -487,7 +487,10 @@ exited at the time of the later joins. Thus, joins on T after the first should return immediately. Calling @func{thread_join} on an thread that is not the caller's -child should cause the caller to return immediately. +child should cause the caller to return immediately. For this purpose, +children are not inherited, that is, if @var{A} has child @var{B} and +@var{B} has child @var{C}, then @var{A} always returns immediately +should it try to join @var{C}, even if @var{B} is dead. Consider all the ways a join can occur: nested joins (@var{A} joins @var{B}, then @var{B} joins @var{C}), multiple joins (@var{A} joins @@ -495,7 +498,6 @@ Consider all the ways a join can occur: nested joins (@var{A} joins if @func{thread_join} is called on a thread that has not yet been scheduled for the first time? You should handle all of these cases. Write test code that demonstrates the cases your join works for. -Don't overdo the output volume, please! Be careful to program this function correctly. You will need its functionality for project 2.