Article 54BVW How does interaction between some app and OS happens?

How does interaction between some app and OS happens?

by
jinelcrimp8
from LinuxQuestions.org on (#54BVW)
I'm a software developer but working with high-level languages I've never really thought about how things work under the hood. Now, here's a particular question I would love to wrap my head around. If I read a file and my program in, let's say, C calls "fgets" to read a file what happens next? At which point OS gets involved? Is there a library loaded in memory and at some point my program knows that it needs to call a particular method from "file system library"? If so, how does my program know the address of the method from that other library? Sorry if some questions sound stupid. I'm just trying to understand how that bridging happens between my code and OS.latest?d=yIl2AUoC8zA latest?i=9YNSN5xxw2Y:hOSXMR5ivj8:F7zBnMy latest?i=9YNSN5xxw2Y:hOSXMR5ivj8:V_sGLiP latest?d=qj6IDK7rITs latest?i=9YNSN5xxw2Y:hOSXMR5ivj8:gIN9vFw9YNSN5xxw2Y
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments