• 0 Posts
  • 20 Comments
Joined 1 year ago
cake
Cake day: July 29th, 2023

help-circle









  • agent_flounder@lemmy.worldtolinuxmemes@lemmy.worldHtop too
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Timer based interrupts are the foundation of pre-emptive multitasking operating systems.

    You set up a timer to run every N milliseconds and generate an interrupt. The interrupt handler, the scheduler, decides what process will run during the next time slice (the time between these interrupts), and handles the task of saving the current process’ state and restoring the next process’ state.

    To do that it saves all the CPU registers (incl stack pointer, instruction pointer, etc), updates the state of the process (runnable, running, blocked), and restores the registers for the next process, changes it’s state to running, then exits and the CPU resumes where the next process left off last time it was in a running state.

    While it does that switcheroo, it can add how long the previous process was running.

    The other thing that can cause a process to change state is when it asks for a resource that will take a while to access. Like waiting for keyboard input. Or reading from the disk. Or waiting for a tcp connection. Long and short of it is the kernel puts the process in a blocked state and waits for the appropriate I/O interrupt to put the process in a runnable state.

    Or something along those lines. It’s been ages since I took an OS class and maybe I don’t have the details perfect but hopefully that gives you the gist of it.


  • I don’t think it is simply “huh this place looks sketch”. Not sure if you read the article.

    The thing is, the criminals knew that Google routes rental cars along a typical route and so they ambush tourists violently along that route. For all I know the route may look fine.

    Anyway, you don’t have to label neighborhoods. Just have the app route them differently…

    …But wouldn’t the criminals catch onto that before long so that the new route becomes the ambush zone?

    Maybe there is a solution like randomly choosing a particular path at different hours but the fewer alternate routes the less effective that will be. Criminals could simply stake out one route and wait a little longer before a victim passes by.

    But is this really a mapping company’s problem to solve? Is the map app responsible for traveler security? What if you ask to be routed into or through a war zone (e.g. somewhere in Ukraine). Does the map app refuse? Warn you? Or what?

    What if someone gets a paper map? Is the map maker responsible? How about the rental car employees?

    Where does the responsibility of the tourist begin and end here?




  • I don’t feel your analogy quite captures what is going on here because both McDonald’s and Taco Bell are in the same business. Maybe if you explain it more.

    Google owns a major web destination, YouTube, essentially a line of business in its own right, in addition to Chrome, also its own distinct product. Firefox competes with Chrome but Google is allegedly using market dominance with YouTube to make it harder for Firefox to compete.

    If a company owns two products A and B and if A is used to access B, company cannot hinder competitors to A via fuckery in B.

    This is the kind of thing that MS got in trouble for – using Windows to tip the scales in favor of Internet Explorer by tightly integrating it into the OS.

    McDonald’s prohibiting people from using their restaurant, which is not itself a separate product with a separate market. Nobody is clamoring to go to McDonald’s restaurant spaces to sit and eat. It’s just part of the restaurant offering. So there is no leverage like there is with YouTube being used against a competitor for a totally different product. And besides, Taco Bell can do the same as McDonald’s. They’re on equal footing.

    If in your analogy there were some other product that McDonald’s owned that could penalize you for going to Taco Bell your analogy would work.

    • Google – Ford
    • Mozilla – Chevy
    • Firefox – Chevy car
    • Chrome – Ford Car
    • YouTube – Ford gas station