# HG changeset patch # User John Tsiombikas # Date 1313548650 -10800 # Node ID 39188bbe8638a47f2c69e1bff8df95d1e44eb140 # Parent ef9cc2e902779edff44a07ec0e371fb960e9739d fixed the comments in test_proc.S diff -r ef9cc2e90277 -r 39188bbe8638 src/test_proc.S --- a/src/test_proc.S Wed Aug 17 05:33:03 2011 +0300 +++ b/src/test_proc.S Wed Aug 17 05:37:30 2011 +0300 @@ -13,16 +13,21 @@ movl $SYS_HELLO, %eax int $SYSCALL_INT - /* --- call getpid --- */ + /* --- call getpid --- + * we'll use the process id, multiplied by two as a + * sleep interval, to avoid having the two test processes + * sleep for identical amounts of time. + */ movl $SYS_GETPID, %eax int $SYSCALL_INT - /* copy the pid to ebx to use as a sleep interval */ movl %eax, %ebx shl $1, %ebx - /* --- sleep for 5 seconds --- */ + /* --- sleep for (pid * 2) seconds --- + * ebx (the argument to sleep) already contains the + * correct value + */ movl $SYS_SLEEP, %eax - /*movl $3, %ebx*/ int $SYSCALL_INT jmp infloop