next up previous contents index
Next: Writing your own cheat Up: Cheating Previous: the-simulation procedure

processor-number procedure

  Return the index of the current processor. While this can be used to wreak havoc with the Gunk abstraction, it is also very useful for tagging debugging output. For example, a Gunk program might print out a few of its variables like this:

(pp `(processor: ,(processor-number) foo: ,foo total: ,total))


Erik Rauch
Sat May 8 16:42:57 EDT 1999