BitHunt
asked on
Why event-based web server softwares use timers?
I can guess that timers in web servers can be used to specify expired connections and close them when they are expired but I can't totally understand why minimum timers are important in an event driven (asynchroneous) web server other than that? How timers and events associated in the cycle of the processing of the events which is for example shown in the image below?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please re-read my comment and read comments in timers code of nginx.
Link is to give you bigger picture of software architecture.
No more from me unless you credit source of your PNG files.
Link is to give you bigger picture of software architecture.
No more from me unless you credit source of your PNG files.
ASKER
The PNG is from Nginx Internals by Joshua Zoe it is not a student homework or etc. It is the only architectural document that i found about nginx in English which is shared by everybody . I'm curious about web servers and want to learn the most efficient one's internals. I'll re-check the source code but there wasn't much information in the source code that is why I end up asking questions to learn about event based web servers.
PNG from:
http://www.slideshare.net/joshzhu/nginx-internals
PNG from:
http://www.slideshare.net/joshzhu/nginx-internals
I thought it was Zeus or IIS...
BTW how long you learn programming and how long C or C++ ???
PS I ask mods to shuffle topic areas so you get more help on understanding software architecture in general.
PPS if you ever got to OS architecture course you might get the almost obvious idea that minimum timer is one to fire first...
BTW how long you learn programming and how long C or C++ ???
PS I ask mods to shuffle topic areas so you get more help on understanding software architecture in general.
PPS if you ever got to OS architecture course you might get the almost obvious idea that minimum timer is one to fire first...
ASKER
It is related to a web server software's architecture and i asked about the some details (analyzing the source code of nginx) ,
How long is your programming experience?
For education i suppose thttpd or NCSA webserver is a good choice to look at.
For education i suppose thttpd or NCSA webserver is a good choice to look at.
Delete without refund.
1st comment gives as high-level answer as possible given blurry question, rest just figures out that asker does not have ide what She/He exactly wants.
1st comment gives as high-level answer as possible given blurry question, rest just figures out that asker does not have ide what She/He exactly wants.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
ASKER
I still have questions in my mind like as it is shown in the image why nginx finds minimum timer? what does it mean? what does waiting for the timer mean (does it assign some amount of time to every event in the event loop, if so what happens after processing each event for a specific amount of time and which events will have minimum timer) ?