Unofficial Hacker News client - receive Push Notifications on replies.

"This message has been on the screen for almost two hours now." (opens external site)

332 points by firloop 2 days ago | unsung.aresluna.org | 213 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (2)

  1. This is due to Windows not being able to write to files that are being read by another program. Updates need a process to be stopped before it can overwrite its files. It's not that every other OS can magically update a running process, but on those you can put the files in place in the background and then relaunch the binary when the user is ready. A database server will still take a while, but most software will be down for only a few milliseconds. Only kernel updates require a reboot (or hacks) but there, again, you can do all the updating work before starting the reboot process.

    On Windows, the easiest way to ensure all your files are unlocked is doing updates upon reboot, at which point it still has to get busy writing the update files to disk now that the processes are not running. You can prep things or work with parallel installations (write the new version to AppData/myProgram/update_v13.9) but in the end, "update when it goes down" it's not so much a design choice as a technical requirement (not that this locking is not also a design choice, to be fair)

    Replies (1)
    1. All of this is a design choice, but there are good reasons for the design choice, but maybe they don't apply as well today but the APIs are already locked in.