Chapter 2 Flashcards
What is event
Event is an occurrence within a particular system or domain
What is event object
Representation of event in computer system
What are probabilistic event
The events occurs on the base of probability
What is synchronous system
An event occur and other events waits until it completes. An example of coffee shop. You are standing on counter in a queue. You order for coffee. Next customer will not come on counter until you get coffee. This is synchronous. It is blocking in nature.
What is asynchronous system
An event occur and other events does not waits until it completes. An example of coffee shop. You are standing on counter in a queue. You order for coffee and then go to your chair. Next customer come on counter and process continue. This is asynchronous. It is non-blocking in nature.
What is polling
For example, In coffee shop, manager goes to every table and ask for any order. This is polling
What is blocking
For example, in coffee shop, manager goes to a table and waits there standing, until it gives order. It is quite possible in the mean while, some other table wants to order but this table can not place its order. It is blocking
What is abstraction
Abstraction gives higher level picture, instead of giving nitty gretty detail
Does event driven programming offers decoupling and abstraction
Yes
What is decoupling
Keeping each problem separate and let it solve separately.
What are real time system
That rely on real systems e.g. car sensors
What are file events
Events related to files
What are network events
Events based on network
What is event producer
The one who produce an event
What is event consumer
The one who consume event. Producer and consumer should be separate.