| | |
Blocking vs. Non-Blocking Direct Communication
![]() |
•
•
Join Date: Jan 2005
Posts: 31
Reputation:
Solved Threads: 0
Does anyone know how to have a thread randomly decide if it wants to do blocking or non-blocking mode with direct communication? I am using a bounded buffer with size of 5. I have the non-blocking mode right but I am not sure how exactly to change it to accommodate for blocking mode. I am not very proficient with Java. I am actually just learning. Does anyone also know how to do blocking direct communication with only 1 producer and 1 consumer used for blocking and non-blocking? Thanks for any help anyone may have.
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 7
Hi everyone,
It depends on the format of your data packets. You could create your own format for data packets. One more thing your buffer size is 5 what? integer, double, etc.
Richard West
It depends on the format of your data packets. You could create your own format for data packets. One more thing your buffer size is 5 what? integer, double, etc.
Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
![]() |
Similar Threads
- Linker Error (C++)
- Nic Card Disconnecting/Reconnecting (Networking Hardware Configuration)
- Three windows ME viruses, I need help. (Viruses, Spyware and other Nasties)
- My charter wont connect (Web Browsers)
- Randomly choosing method (Java)
- Ask The Computer Geek #4 (Windows 95 / 98 / Me)
- Script problems with IE (Web Browsers)
Other Threads in the Java Forum
- Previous Thread: How can i call my FileOutput method to output the array ?? really confused...
- Next Thread: Search program help in modifications
| Thread Tools | Search this Thread |
2dgraphics account android api apple applet application arguments array arrays automation banking binary binarytree bluetooth chat chatprogramusingobjects class client code color component count database derby design eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui homework html ide if_statement image integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel julia keyword linux list macintosh map method methods midlethttpconnection mobile netbeans newbie nullpointerexception object open-source os problem producer program programming project projectideas property read recursion reference replaysolutions ria scanner search server set size sms sort sourcelabs splash sql sqlite stop string swing testautomation threads transforms tree ui unicode validation windows





