/* * CS460: Operating Systems * Jim Plank * hw.c -- Hello world with pseudo-threads */ #include #include "pt.h" extern exit(); hw() { printf("Hello World\n"); } main() { void *t; t = pt_fork(hw, NULL); pt_join(t, exit, 0); }