<s> from diesel import Loop , fork , Application , sleep <EOL> def sleep_and_print ( num ) : <EOL> sleep ( <NUM_LIT:1> ) <EOL> print num <EOL> sleep ( <NUM_LIT:1> ) <EOL> a . halt ( ) <EOL> def forker ( ) : <EOL> for x in xrange ( <NUM_LIT:5> ) : <EOL> fork ( sleep_and_print , x ) <EOL> a = Application ( ) <EOL> a . add_loop ( Loop ( forker ) ) <EOL> a . run ( ) </s>
