| Share this post! | Vote this! |
|
Here, these two codes are used to shows the difference between normal
MultiThreading and Synchronized Multithreading. Notice, see the
difference in the starting and finishing of all the threads in both the
code and try to find why every time when you run the program code,
random thread starts first.
Usually a thread has three part :
Thread can be created in two ways.
Usually a thread has three part :
- CPU : Its store the address of the entire path required.
- Data : It is the information carried by a thread during its life cycle.
- Code : It is the known as the property of thread.
Thread can be created in two ways.
- By extending the thread class.
- By using / implementing the runnable interface. more...



0 comments:
Post a Comment