Click here to Skip to main content
16,006,768 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: Berkeley sockets Pin
Jon Sagara17-Oct-01 21:11
Jon Sagara17-Oct-01 21:11 
GeneralRe: Berkeley sockets Pin
markkuk17-Oct-01 21:38
markkuk17-Oct-01 21:38 
GeneralRe: Berkeley sockets Pin
Jon Sagara18-Oct-01 4:44
Jon Sagara18-Oct-01 4:44 
GeneralRe: Berkeley sockets Pin
markkuk18-Oct-01 20:08
markkuk18-Oct-01 20:08 
GeneralRe: Berkeley sockets Pin
Jon Sagara18-Oct-01 20:16
Jon Sagara18-Oct-01 20:16 
GeneralRe: Berkeley sockets Pin
Jon Sagara18-Oct-01 19:06
Jon Sagara18-Oct-01 19:06 
Questioncrazy idea.............. ? Pin
Huu Quynh9-Oct-01 13:41
Huu Quynh9-Oct-01 13:41 
AnswerRe: crazy idea.............. ? Pin
Rassman30-Oct-01 23:19
Rassman30-Oct-01 23:19 
Realtime processing within MSDOS was always a tricky thing, less so in Windows.

The solution depends on what size of time you need to be within. For example a realtime process that only has to react per minute would be fine in any OS, since the time slice is much less than a minute.

In DOS you are not in timeslices. Your program is called, and that is the only program running until your program ends. Except of cause drivers (TSRs - transient-stay-resident) running on interrupts. So, in this case you would want a driver that triggers a call in your program. A typical one would be on receiving data at a serial port. You would write software to buffer incoming data and trigger a software interrupt which calls a callback function in your main code. This is realtime with loss of driver-time, your programs reaction time and your own process-time (about as real as it gets in DOS). Direct access to the IRQ (interrupt controller) is no longer available in Windows, though it is not so much needed.

In Windows (after Win3.x that is since 3.x was still a DOS machine), 98/NT/2000, you actually have it better since the port stream is for the most part handled for you. You only need to capture it then set a callback. As you are in timeslices your main program can carry on working on its data, then on a call from incoming data you collect and process.

How real the time is depends on how much processing you need to do on the data and the speed of your machine. If the processing is longer than the time between receiving new data then obviously you are not in realtime and have to account for this in the processing itself. Carefull use of threading can increase your programs response time. But the speed of modern machines are generally fast enough to give you 'effective' realtime.

On a worst case instance with Win95, I had to effectively crash Windows. I let my code take all time from the machine in order to keep up with the incoming data. The same project on a proper timeslice OS runs without problem (other than the standard bugs we all write).

We do it for the joy of seeing the users struggle.
GeneralIP Port monitor Pin
Leo Smith3-Oct-01 3:57
Leo Smith3-Oct-01 3:57 
GeneralRe: IP Port monitor Pin
NormDroid3-Oct-01 4:25
professionalNormDroid3-Oct-01 4:25 
GeneralRe: IP Port monitor Pin
Leo Smith3-Oct-01 4:43
Leo Smith3-Oct-01 4:43 
GeneralRe: IP Port monitor Pin
NormDroid3-Oct-01 4:53
professionalNormDroid3-Oct-01 4:53 
GeneralRe: IP Port monitor Pin
3-Oct-01 4:39
suss3-Oct-01 4:39 
GeneralRe: IP Port monitor Pin
Lim Bio Liong18-Dec-01 0:17
Lim Bio Liong18-Dec-01 0:17 
GeneralServices & Sockets in NT Pin
Jason Hihn28-Sep-01 4:24
Jason Hihn28-Sep-01 4:24 
GeneralRe: Services & Sockets in NT Pin
Andres Manggini28-Sep-01 7:11
Andres Manggini28-Sep-01 7:11 
GeneralRe: Services & Sockets in NT Pin
6-Nov-01 4:01
suss6-Nov-01 4:01 
GeneralNotifications about File and Directory changes on Wince Pin
Firas26-Sep-01 3:58
Firas26-Sep-01 3:58 
GeneralThread in DLL Pin
22-Sep-01 8:14
suss22-Sep-01 8:14 
GeneralRe: Thread in DLL Pin
Joaquín M López Muñoz22-Sep-01 9:28
Joaquín M López Muñoz22-Sep-01 9:28 
GeneralKind of data in USER memory Pin
Christian Probst20-Sep-01 22:45
Christian Probst20-Sep-01 22:45 
GeneralWin2000/XP Job Kernel object Pin
18-Sep-01 2:28
suss18-Sep-01 2:28 
QuestionHow can I get... Pin
spadeAce17-Sep-01 21:19
spadeAce17-Sep-01 21:19 
AnswerRe: How can I get... Pin
moliate6-Nov-01 3:10
moliate6-Nov-01 3:10 
QuestionCompiling Unix compatible code with VC ? Pin
yarp10-Sep-01 8:15
yarp10-Sep-01 8:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.