Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3003


This forum is provided to promote discussion amongst students enrolled in Graphics and Animation (CITS3003).
 
Options:
RSS cloud
Jump to:

Event Mode vs Request Mode

1 of 265 articles shown, currently no other people reading this forum.
photo
From: Mohammad J.
Date: Tue 24th Mar, 1:23pm
Actions: 
        Login-to-reply
Hi,

If you look at it in this way, it is indeed confusing. 

These differences are more from your application point of view. In your application, the flow is disrupted when a special 'event' takes place and for that, if there is a callback function then that is executed. 

While in request mode, your application keeps on waiting for something to happen, other activities in that thread of execution are held. 

The way event handling is done is an independent discussion. 

Regards,
Asim

P.S: For the sake of analogy, this is similar to polling vs interrupts in microcontrollers. The are special routines/functions that are executed if there is a change in signal over any pin. Special hardware circuitary is required to support it (similarly seperate software is required to support event handling).

Related articles

Event Mode vs Request Mode (all 3) RSS
├─ original   Mon 23rd Mar, 11:12pm, ANONYMOUS
├─ reply 1   Tue 24th Mar, 1:21pm, Naveed A.
└─ THIS   Tue 24th Mar, 1:23pm, Mohammad J.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020