Results 1 to 2 of 2
Thread: call a thread knowing its ID
- 07-04-2011, 02:06 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 20
- Rep Power
- 0
call a thread knowing its ID
hello, is it possible call a thread using its ID ???
Can I access I do something similar to:Java Code:static long ID; public transmisor(Socket Conexion){ this.conexion=Conexion; ID = this.getId(); } public void run(){ while(true){ try{ java.util.Scanner in = new java.util.Scanner(System.in); String enviar = in.nextLine(); OutputStream bufferSalida = conexion.getOutputStream(); DataOutputStream datos = new DataOutputStream(bufferSalida); datos.writeUTF(enviar); } catch (Exception e){ e.printStackTrace(); } } }
Thank you in advanceJava Code:thread(ID).run();
- 07-05-2011, 12:14 AM #2
Similar Threads
-
Knowing what object called the actionListener?
By enerj in forum New To JavaReplies: 4Last Post: 11-02-2010, 09:30 AM -
Problem in knowing the status of windows
By sushil in forum Advanced JavaReplies: 1Last Post: 10-05-2009, 09:35 PM -
Need help in knowing how to clear buffer.
By tedstevens in forum New To JavaReplies: 1Last Post: 08-20-2009, 05:02 AM -
Knowing which IP address is active
By sukatoa in forum NetworkingReplies: 2Last Post: 05-05-2009, 04:01 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


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks