Advertisement
Guest User

Untitled

a guest
Oct 5th, 2014
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.27 KB | None | 0 0
  1. import internal.gc.gc, std.thread, std.stdio;
  2.  
  3. class Job : Thread {
  4.  this() {
  5.    super(&run);
  6.  }
  7.  private int run() {
  8.    while (true) writef("*");
  9.    return 0;
  10.  }
  11. }
  12. void main() {
  13.  Job j = new Job;
  14.  j.start();
  15.  
  16.  fullCollect();
  17.  
  18.  while(true) writef(".");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement