thanks nico,
just for curiosity .. can u tell me how are event handled in Unix.. by
signals ?

in some 3rd party libraries i have found things called callbacks which
 come into action when an event occurs. for example in a socket
program there is a callback function called onData() which gets
triggered when data arrives. how are these things actully implemented?
im really curious to know these things :)




--- In [email protected], "Nico Heinze" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "Indika Bandara" <indikabandara19@>
> wrote:
> >
> > thanks,
> > 
> > using 2 threads would be ok.. but dont think it would be
> > as efficient as event handling/software interrupts (which
> > i do not know and looking for help)
> <snip>
> 
> Regarding event handling: this IS a special kind of event handling.
> Just one that is not queued. But then you won't always work with event
> handling systems like Windows anyway. So don't fixate yourself on
> mechanisms like message queues on certain operating systems.
> 
> Forget about software interrupts; these have been in heavy use under
> MS-DOS and are still in use on some operating systems, but not under
> Unix, not under Windows, and not on mainframes. Plainly spoken: don't
> use them as long as you can avoid them.
> 
> Regards,
> Nico
>


Reply via email to