See also this thread: Threading 1.3: Success Story - #2 by tobias.knopp
That is actually a better example. You would start Julia with -t 2 and the @spawn command will offload the work to a worker. The idle_add than communicates from the worker to the UI threads and passes it update commands.