Monochrome is so last year. This uses multiprocessingmultiple processes and syscalls to achieve two color CPU graphs!
from time import* import os A='%-99o'%int('t12q2lxqkap48euoej9429cqv3ek6cy28iluqbnfk5t''t12q2lxqkap48euoej9429cstbnazg84zyxflqzi8k1',36) f=open('/dev/urandom') for i in'0123456': t=os.fork() while t<1:T=int(time())%50;(sleep,(id,f.readlines)[i<A[T+49]])[i<A[T]](1)
This code assumes you have 8 cores. It should be pretty easy to modify for fewer/more. It is portable to Linux/UNIX systems (though it has only been tested on OS X), and should produce the same two-color output for any CPU monitor that can distinguish User from System CPU time.
Essentially, this works by forking off seven processes, each of which will choose to spend 1 second sleeping, spinning in usermode, or spinning the kernel. Spinning in kernel mode is achieved by requesting large globs of data from /dev/urandom, which forces the driver backing /dev/urandom to spend a lot of "system" CPU cycles.