#include #include #include #include #include #include enum { STACK = 32768 }; Channel *c; void delaytask(void *v) { taskdelay((int)(uintptr_t)v); printf("awake after %d ms\n", (int)(uintptr_t)v); chansendul(c, 0); } void taskmain(int argc, char **argv) { int i, n; c = chancreate(sizeof(unsigned long), 0); n = 0; for(i=1; i