Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc,alt.comp.os.windows-11 Subject: Re: Microsoft Is Abandoning Windows 11 SE Date: 9 Aug 2025 21:43:28 GMT Lines: 23 Message-ID: References: <106mke5$1di32$1@dont-email.me> <106ukm1$35g8p$3@toylet.eternal-september.org> <106v67a$1cgol$1@news1.tnib.de> <106vfvv$3bpmd$1@toylet.eternal-september.org> <106vi4r$3c9cr$2@dont-email.me> <3ihcmlx47d.ln2@Telcontar.valinor> <107070d$3hvho$1@dont-email.me> <1071hb2$3qqje$2@toylet.eternal-september.org> <1071jbr$3ra8s$1@dont-email.me> <10746fg$h625$2@dont-email.me> <20250808081850.00002e14@gmail.com> <1075pla$ukab$1@dont-email.me> <20250808144937.000021b1@gmail.com> <107777t$17kq4$7@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net xxVz3vdpEzHtD/HcdnBAngxWiLC80nd/2UVpeYFyLVJQk82guL Cancel-Lock: sha1:tCqpVcedUjDz2zPC5WCKw9LgzMA= sha256:re/Gms8giAvtC4r1siOe5tj7aORblzHbUBCyejwFdng= User-Agent: Pan/0.162 (Pokrosvk) Xref: csiph.com comp.os.linux.misc:70708 alt.comp.os.windows-11:21844 On Sat, 9 Aug 2025 11:17:33 +0100, The Natural Philosopher wrote: > OTOH if a simple round robin foreground scheduler works why on earth not > use it? I've gotten a lot of miles out of that architecture. It's very effective if the tasks are designed not to block or take excessive time. > I just wrote some pico code that sits in a loop waiting for a transition > on a pin, then waits till it goes back, checks the time it was high, > does some simple stuff to set some outputs, and then goes back to > waiting. I could have done it under interrupts, but since that is all > the CPU has to do, it seemed a bit excessive. Many people feel if interrupts are available they should use them and wind up with complicated ISRs and unforeseen problems. Start with KISS and if it can't keep up get fancy. Quite a few of our daemons have a main loop. The basic algorithm is "Anything happened lately I need to take care of? No? Then I'll go off and do my housekeeping chores for a while." The chores were designed to be incremental; do a couple of things and return rather than vacuum the whole house.