Made process and thread ids small integers instead of pointers.

8 files changed