Operating Systems 2017F Lecture 19: Difference between revisions

From Soma-notes
KYuan (talk | contribs)
KYuan (talk | contribs)
Line 14: Line 14:
** FUSE applications?
** FUSE applications?
** the linux kernel?
** the linux kernel?
** node web applications
** node web applications?
 
 
In many systems, "main" just sets up even handlers
* the event loop can be implicit or explicit
** or there may be no loop at all, just handlers and "interrupts" some kind
* event loops poll (check) to see when there are new events
* what are event loops for node app?
** where are interrupts for node apps?
***Incoming network requests, it's an event
 
 
OS kernels are essentially the same thing

Revision as of 18:37, 21 November 2017

[Notes]

Sample
sample


Additional Notes

Where's main?

  • lots of program shave "main" functions - a function that runs first and controls the execution of the program
  • Do these have "main" functions?
    • Linux kernel modules
    • FUSE applications?
    • the linux kernel?
    • node web applications?


In many systems, "main" just sets up even handlers

  • the event loop can be implicit or explicit
    • or there may be no loop at all, just handlers and "interrupts" some kind
  • event loops poll (check) to see when there are new events
  • what are event loops for node app?
    • where are interrupts for node apps?
      • Incoming network requests, it's an event


OS kernels are essentially the same thing