example 1: count to 10: 0 0 w ( 0 r print 0 r 1 + 0 w ) ( 0 r 10 < ) while example 2: timed count to 10: 0 0 w ( 0 r print 0 r 1 + 0 w 0.5 wait ) ( 0 r 10 < ) while example 3: sending messages to pd to hear stuff ./filth << . | pdsend -c 10000 localhost udp 0 0 w ( 0 r 48 + print 0 r 1 + 0 w 0.25 wait ) ( 0 r 13 < ) while . notes: stacks calling functions as opposed to queueing threads need local stacks The C stack at work in filth interpreter temporary variables and recursion how to make it interactive unix sched - problems: sharing memory; controlling priorities more than one in an address space? using it to maintain a queue of stuff to do? trouble with wait function: what if you want to wait for a sample to arrive? what if you really should be doing other things while you wait? How would you send messages with pitch and dynamic to Pd? The DAG picture of scheduling