How to perform single task by multiple threads?
If you have to perform single task by many threads, have only one run() method.For example: |
Output:task one
task one
task one
Output:task one
task one
If you have to perform single task by many threads, have only one run() method.For example: |
Output:task one
task one
task one
Output:task one
task one
No comments:
Post a Comment