Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Handle communication priority for client with two connections

tmazightJul 4 2012 — edited Jul 6 2012
Hi,

I'm writing a server where I have to accept connection on two ports, 2 Socket for each client.

One socket have more priority than the other, and the two of them will write on the same file.

How can i make an architecture with the less threads possible(A lot of client, perhaps 600), and be sure that while i have messages on the priority socket, i give it the priority to right on the file.

best regards.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 3 2012
Added on Jul 4 2012
3 comments
401 views