home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume27 / distributed-c-2.1 / part01 / examples / test / test.dc < prev   
Text File  |  1993-12-22  |  359b  |  30 lines

  1. process spec test();
  2.  
  3. process body test()
  4. {
  5.     printf("%s test terminating\n", _processprefix);
  6.     fflush(stdout);
  7. }
  8.  
  9. process spec creator();
  10.  
  11. process body creator()
  12. {
  13.     int i;
  14.  
  15.     for(i = 1; i<= 20; i++)
  16.         create test();
  17. }
  18.  
  19. main()
  20. {
  21.     int i, anz;
  22.  
  23.     anz = atoi(argv[1]);
  24.     for(i = 1; i<=anz; i++)
  25.         create creator();
  26.     puts("Waiting for input");
  27.     scanf("%d", &anz);
  28. }
  29.  
  30.