Re: java socket i/o with callback/non-blocking



You're right, that sounds more like what I'm looking for.
So I'll have my i/o thread that will issue a read command which will
block (allowing other threads to run) while it is waiting for input.
When there are incoming bytes to read in the socket's buffer, the i/o
thread will automatically become unblocked/wake up and I can process
the bytes and eventually issue another read command. What if I need to
write to the socket while it is blocked on a read? Should I create
another thread for the writing (which means I have to worry about
deadlock/race conditions, right?) or can I somehow interrupt the
thread, abort the blocked read command and write instead? Am I on the
right track at all here?

.



Relevant Pages

  • Re: pppd-2.4.2 + kernel-2.6.7 problem
    ... I 've programmed my modem to have its speaker ... >ABORT 'NO CARRIER' ... What all does "Reset to Stored Profile 0" ... and it was echoed back to you - the command was ...
    (comp.os.linux.networking)
  • Re: MPEX Question
    ... I KNOW I have done this before and when I do the abort it says it is changing me back to my original logon. ... at the command prompt issue an abort command ... The contents of this message, together with any attachments, are ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • callback dialup, client linux - server NT
    ... ABORT "NO CARRIER" ... The chat program send a ATZ command but get no OK from my modem. ... Dec 10 21:51:13 redrat chat: Failed ...
    (comp.os.linux.networking)
  • Re: ppp and nokia 6630
    ... waiting for anything, and then sending ATZ. ... your modem is in an indeterminate state. ... to have to achieve sync with the modem's command interface. ... ABORT 'NO CARRIER' ...
    (comp.protocols.ppp)
  • Re: Stacktrace
    ... > What's wrong with calling 'abort'? ... It sounded as though abort would terminate the processing (returning ... I then tried the "abort" command in a sample C program but there was ... see a stack trace though. ...
    (comp.os.linux.development.apps)