Results 1 to 4 of 4
- 12-10-2008, 06:13 AM #1
- 12-10-2008, 06:23 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
We use threads in Java(actually in whole programming) to execute parallel or distributed process at the same time.
More simply, think about a users data entry system. Once a user enter his/her data system need to process it. It may take little time. Until that process is completed system cannot get others data, if you are working on a single routine. Using multiple threads what we can do is, collecting data and processing data can be done in two phrase, without disturbing to each other.
You cannot write programming without using threads in Java. Even you implement runnable interface or extended the Thread class, main method always run on a thread.
- 12-21-2008, 09:19 AM #3
Member
- Join Date
- Mar 2008
- Posts
- 10
- Rep Power
- 0
> is it possible to write program with out thread.
You can *write* a program without threads
however you cannot run a program without using threads.
Fortunately, you can write and run programs without worrying about threads being there. You can get a long way without using Threads explicitly.
- 12-21-2008, 05:41 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes, I've miss the word. You can write program without threads, but cannot runt without them.
Similar Threads
-
How to write interceptor program in struts2?
By vasu in forum Web FrameworksReplies: 1Last Post: 10-07-2008, 07:53 AM -
need help to write Program in JAVA
By maneibr in forum New To JavaReplies: 1Last Post: 03-13-2008, 01:28 PM -
How to write a JAVA program to mesure ping delay..?
By sacr83 in forum NetworkingReplies: 1Last Post: 02-15-2008, 04:07 PM -
Need to write a program to execute a list of system commands
By mdthahir in forum New To JavaReplies: 2Last Post: 08-07-2007, 07:22 PM -
Need to write a program to execute a list of system commands
By mdthahir in forum NetworkingReplies: 1Last Post: 07-27-2007, 05:46 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks