Advertisement
gwynplaine

proses dan thread

Oct 17th, 2022 (edited)
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.30 KB | None | 0 0
  1. Program ThreadTest1
  2.     Sub thread1 as thread
  3.         for i=1 to 10
  4.             Writeln ("in Thread1:",i)
  5.         Next
  6.     End sub
  7.  
  8.     Sub thread2 as thread
  9.         for i=11 to 20
  10.             Writeln ("in thread2:",i)
  11.         Next
  12.     End sub
  13.  
  14. Call thread1
  15. Call thread2
  16.  
  17. Do
  18. Loop
  19.  
  20. end
Tags: kuliah so
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement