under winnie, no matter the build or os.It'll never happen
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Originally posted by Jim Yingst:
It's difficult to tell what you're talking about here
It's reliablility probing, in advance of any use, that I am attempting to achieve. Solaris has a profoundly more reliable kernel io routines than proprietay windows, but I have to do my prototyping on proprietary windows and not look like 'user is a twit' when I send code up for testing.each of which had some bug or another making it unsuitable for general use.
What is this "cooking" you refer to?
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
[Jim]: What is this "cooking" you refer to?
[Nicholas]: That was just employment of casual, conversational style to label " achieve design performance goals "
Ummm, OK. And yet, I still have no idea what those goals are. And therefore, no idea what you actually mean.
Is there a function in gcc to detect a keyboard hit? Windows provides a function _kbhit(). It operates in non-blocking mode, returns 0 until the user hits a key on the keyboard.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Originally posted by Nicholas Jordan:
In other words, how much processor loading does Scanner ..... uh,.... can it even do non-blocking reading of System.in
"I'm not back." - Bill Harding, Twister
Originally posted by Henry Wong:
Anyway, then I guess this topic was originally *correctly* posted in the threads forum after all -- as threading is a common way to read/write I/O in a non-blocking manner.
Henry
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Originally posted by Nicholas Jordan:
Can I engage my regular style then ?
I am sure you know what I intend by this, it takes a certain approach to be effective on this type of coding arena....
I call it thirteen mirrors, after Dr.Stroustrup's Fifteen Ways to Stack a Cat (minus two for the obvious right way and wrong way leaves thirteen ways, which seem to be mostly mirrors on the same central problem)
Originally posted by Henry Wong:
Nicholas,
It's probably because I didn't have my morning coffee yet, or maybe my mind is too focused on gift wrapping at the moment, but ... I am not sure to what you are referring to. I am assuming there is an article, written by Dr. Stroustrup, which talks about threading or I/O?
Henry
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Originally posted by Jim Yingst:
It's difficult to tell what you're talking about here, Nicholas. There seems to be some context which you're assuming we know about - we don't. Well, I don't.
[Nicholas]: Are you saying
Is who saying? Is this a continuation of some previous conversation?
and that is what I was doing when I did this. And,If you have a new question, don't reply to an old post, but compose a new email
context which you're assuming we know about
Having interruptible IO on the Java side won't help you much there, I think, as it's the C code that you want to return if no new bytes are available from the socket.
Assuming I've guessed correctly at what you're talking about.
What is this "cooking" you refer to?
In general, the Java IO classes found under java.io are not interruptible. There are newer (and more complex) classes in javax.nio and its subpackages, some of which are interruptible. So if you need interruptible Java IO, you should probably look there. Using tradtional IO there were a number of possible attempted workarounds, each of which had some bug or another making it unsuitable for general use.
as it's the C code that you want to return if no new bytes
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Originally posted by Henry Wong:
Good point... I totally forgot about that. Been using it for socket streams and I just assumed that it work for all stream types.
Anyway, then I guess this topic was originally *correctly* posted in the threads forum after all -- as threading is a common way to read/write I/O in a non-blocking manner.
Henry
Interruptible I/O, and non-blocking I/O, are two different things.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Hang a left on main. Then read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|