Results 1 to 8 of 8
Thread: Thread communications!
- 05-05-2008, 06:36 AM #1
Member
- Join Date
- Dec 2007
- Posts
- 42
- Rep Power
- 0
- 05-05-2008, 07:01 AM #2
Can you explain some more..?
sanjeev,संजीव
- 05-05-2008, 07:03 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
What you really want to do? Communicating on a thread? May be in a specific time interval? Explain it more pal.
- 05-05-2008, 07:33 AM #4
A thread is an execution path in your program. You cannot send data to a thread. You can make the thread access some data, check for data, wait for data and so on.
Daniel @ [www.littletutorials.com]
Language is froth on the surface of thought
- 05-05-2008, 08:40 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 05-06-2008, 10:09 AM #6
Member
- Join Date
- Dec 2007
- Posts
- 42
- Rep Power
- 0
A thread listening on some dataStreams and I want such thread to send data via the dataStreams used.I have the thread's id also.Is is possible?
- 05-06-2008, 02:20 PM #7
You can make a thread wait on a "data stream" as long as the "data stream" read API is written in such a way that will make the thread that is trying to read to wait until data is available and then notifies it. An example is the sockets API. So yes, it is possible. But again you don't send data to a thread, you notify a thread waiting for your data that the data has become available.
Daniel @ [www.littletutorials.com]
Language is froth on the surface of thought
- 05-11-2008, 12:18 PM #8
Member
- Join Date
- Dec 2007
- Posts
- 42
- Rep Power
- 0
Similar Threads
-
data from the main/GUI thread to another runnin thread...
By cornercuttin in forum Threads and SynchronizationReplies: 2Last Post: 04-23-2008, 10:30 PM -
How to get thread name
By Java Tip in forum java.langReplies: 0Last Post: 04-09-2008, 06:40 PM -
If JNI thread call the java object in another thread, it will crash.
By skaterxu in forum Advanced JavaReplies: 0Last Post: 01-28-2008, 07:02 AM -
using Thread
By one198 in forum New To JavaReplies: 1Last Post: 11-21-2007, 08:01 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks