c++ - signal handler vs event handler -


recently in interview asked me point out difference between signal handlers , event handlers. have never encountered event handlers in linux after searching google find event handlers present in windows.

i want more information regarding question. information welcome.

i found user have write event handler function in order capture events while default signal handlers provided kernel program.

event handlers take care of events external program keyboard interrupt, mouse click etc. event handlers polling continuously on particular slot event happen. here might consume cpu life cycles.

signal handlers used interprocess communication between 2 process. user can define own signal handler process handle particular signals. in signal handling mechanism don't think cpu cycles consumed unnecessarily.

please correct me if not heading in correct way.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -