14 ms·
"OS" in this context means "scheduler", i.e the code that coordinates your application tasks. That description can also apply to VMs such as JS, hence the compa
by TickleSteve 2y ago
"OS" in this context means "scheduler", i.e the code that coordinates your application tasks.
That description can also apply to VMs such as JS, hence the comparison.
You could consider this type of library OS even more tightly bound to the application than your typical JS app as its actually linked to the user code.
- msh 2y agoA scheduler is part of a OS, but a scheduler alone does not make a OS.
- TickleSteve 2y ago"Operating Systems" for microcontrollers such as this are frequently just schedulers as the Application typically contains drivers and hits the hardware itself. e.g. FreeRTOS.
- crest 2y agoEven those implement communication primitives e.g. locks, semaphores, mailboxes, etc. as part of the OS. Some of the larger ones also define a driver model of sorts (which often just codifies the structure of the first driver for that type of peripheral e.g. USB, Ethernet, CAN, I2C, SPI, GPIO).
- vrighter 2y agoAnd the scheduler decides which thread gets to run next. On a cooperative multitasking system, guess what the OS code you jump to when you yield from a thread does, and what it's called?
- TickleSteve 2y agoThat was my point.
- vrighter 2y agoreplied to the wrong coment, sorry
- MisterTea 2y agoWhat context are we talking about here?
- kergonath 2y ago> "OS" in this context means "scheduler", i.e the code that coordinates your application tasks If you define the context to mean it and then assume that everyone agrees with your implicit context, then maybe. In reality, OS and schedulers are not the same thing. It’s also a leap from the “MacOS 9 was not an OS” GP position.
- rvense 2y ago> It’s also a leap from the “MacOS 9 was not an OS” GP position. That wouldn't be the first time I've heard that statement, even among classic Mac enthusiasts.
- kergonath 2y agoThen surely there are instances of people saying that it is “not an OS”. And I don’t mean hyperbole. Here are 3 definitions from 3 different sources: https://www.wordnik.com/words/operating%20system https://www.wordnik.com/words/operating%20system . Not a single one even mentions process scheduling or anything to exclude MULTICS, CP/M, DOS, or any version of MacOS or Windows. I know that some people think that being contrarian on HN is cool, but this is beyond ridiculous.
- 0x457 2y ago> "OS" in this context means "scheduler", That's essentially what OS is: some bootstrap, scheduler and some APIs for developers and some drivers.