Jump to content

Event Loops

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Matt_Doug

Matt_Doug

    Newbie

  • Members
  • Pip
  • 1 posts
Hi,

I am currently in my second year at college and i am stuck on a unit for event driven programming.

I have been asked to write about event loops but i dont know how to put that into text.?

So far i have put

"Event loops work in the background, they work by looping all triggers. For example when a mouse is click it will look at the trigger which is click and then run the event for that trigger."

I dont think this is correct nor does it make sense

Could anyone help me?

#2
fayyazlodhi

fayyazlodhi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 403 posts
I think you are doing okay so far:

You can proceed by for e.g. explaining what an event handler may be followed by discussing how it is implemented in windows where a message passing loop exists vs Linux and other platforms etc.

Then may be how different languages support it. For e.g. in .NET you can drag drop a button and double clicking it will generate the click button event function and you can just add code. But there is obviously event registration and listening mechanism running behind. You can still create events through code.

Similarly, for java you might need to add listeners, action events etc. A little detail on the internals of how these are implemented are easily googled.

You might take some help from here
Event loop - Wikipedia, the free encyclopedia




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users