frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Multicore suppport for DOS is real – partly

https://www.vogons.org/viewtopic.php?t=111336
25•beebix•2d ago

Comments

ronsor•1h ago
> ERR_HTTP2_PROTOCOL_ERROR

Hm?

vintagedave•1h ago
So this seems to be a mystery binary someone found on a company DVD, that runs DOS on one core and runs another core with code but no interrupts etc. Fascinating.

The thread later mentions a second way to do it.

In this setup, how would cross-core communication work, including cross-thread? On DOS is there even the concept of threads, or would an app using this have to invent user-mode thread objects and scheduling?

fredoralive•42m ago
DOS barely has any concept of processes, let alone threads.

So it’ll all be very do it yourself. Of course with everything running in ring 0, there’s not much that’s going to get in the way of you.

haileys•9m ago
> DOS barely has any concept of processes

That's not true - DOS lacks multitasking but it absolutely has a concept of processes. They're called PSPs (program segment prefixes, a struct containing data about that process) and the OS has a range of syscalls to manage them. Any program can spawn a child program and wait for its completion.

The memory allocation syscalls track which program owns each dynamically allocated block of memory (the block has a header which points to the PSP), and frees the blocks allocated by a program when it exits. The filesystem syscalls deal with file handles opened by processes in just the same way.

The famous "terminate and stay resident" syscall causes a program to exit and return to its parent process while keeping its PSP and dynamically allocated memory blocks intact.

16 bit Windows introduced multitasking but reused DOS's PSP based process model and would allocate a PSP for each Windows task, switching the current DOS PSP when switching between Windows tasks.

kmeisthax•22m ago
DOS has no concept of multiple cores, much less threads. Multiprocessing in such an environment "works" mainly for the same reason why pthreads and friends "worked" in the decades before C++11 standardized a memory model for native code. The hardware and your code must conspire to work around the part that isn't thread-aware.

Nothing is really stopping you from using the underlying hardware for concurrent execution, but at the same time DOS (and possibly BIOS/UEFI???) will blow chunks if you don't carefully synchronize access to it. Cross-core communication works exactly the same as it does in kernel-mode systems programming; and you need to bring your own synchronization primitives on top of the ones x86 processors ship with. You're basically writing an OS kernel at that point; one that just so happens to support kexec-ing back into COMMAND.COM and using bits of it as a filesystem driver.

toast0•10m ago
> In this setup, how would cross-core communication work, including cross-thread?

Communication via shared memory. DOS and friends run on core 0 more or less normally; core 1 runs your alternate programming. Allocate a shared ring buffer for messages in each direction, core 0 writes messages and updates the written index on one, reads messages and updates the read index on the other; vice version for core 1. Core 1 probably spins on checking the indexes if it doesn't have anything else to do.

Either allocate a big chunk of memory for core 1 work at startup, or let it message core 0 to allocate. Don't let core 1 call into DOS/BIOS syscalls directly or you'll have a big mess.

Next step in efficiency would be letting core 1 sleep when it's bored and use an inter-processor interrupt (IPI) to wake it up as needed.

MAI-Code-1-Flash

https://microsoft.ai/news/introducingmai-code-1-flash/
246•EvanZhouDev•2h ago•117 comments

Gmail thinks I'm stupid, so I left

https://moddedbear.com/gmail-thinks-im-stupid-so-i-left
335•speckx•1h ago•167 comments

MAI-Thinking-1

https://microsoft.ai/news/introducing-mai-thinking-1/
106•LER0ever•2h ago•39 comments

Open Repair Data Standard – Open Repair Alliance

https://openrepair.org/open-data/open-standard/
43•cassepipe•1h ago•1 comments

CT scans of BYD car parts

https://www.lumafield.com/scan-of-the-month/byd
37•viasfo•53m ago•7 comments

A walking tour of surveillance infrastructure in Seattle (2020)

https://coveillance.org/a-walking-tour-of-surveillance-infrastructure-in-seattle/
338•eustoria•7h ago•197 comments

HP re-releases classic computer science calculator: The HP-16C

https://hpcalcs.com/product/hp-16c-collectors-edition/
48•dm319•2h ago•29 comments

The advertising cartel coming to your web browser

https://blog.zgp.org/the-advertising-cartel-coming-to-your-web-browser/
72•speckx•1h ago•14 comments

Trump signs downsized AI order after weeks of reversals

https://www.politico.com/news/2026/06/02/trump-signs-downsized-ai-order-00946389
122•_alternator_•4h ago•83 comments

Adafruit receives demand letter from Fenwick legal counsel on behalf of Flux.ai

https://blog.adafruit.com/
546•semanser•11h ago•230 comments

Launch HN: Rudus (YC P26) – AI for concrete contractors

28•rishipankhaniya•2h ago•7 comments

How we index images for RAG

https://www.kapa.ai/blog/how-we-index-images-for-rag
43•mooreds•5h ago•5 comments

GitHub Copilot App

https://github.com/features/preview/github-app
78•theanonymousone•3h ago•51 comments

Bringing Up DeepSeek-V4-Flash on AMD MI300X

https://fergusfinn.com/blog/deepseek-v4-flash-mi300x/
56•kkm•3h ago•6 comments

QBE – Compiler Backend – 1.3

https://c9x.me/compile/release/qbe-1.3.html
51•birdculture•3h ago•8 comments

Why Janet? (2023)

https://ianthehenry.com/posts/why-janet/
406•yacin•11h ago•217 comments

Show HN: Live breath detection and biofeedback from a phone microphone

https://github.com/shiihaa-app/shiihaa-breath-detection
6•felixzeller•5h ago•0 comments

Multicore suppport for DOS is real – partly

https://www.vogons.org/viewtopic.php?t=111336
25•beebix•2d ago•6 comments

Fidonet: Technology, Use, Tools, and History (1993)

https://www.fidonet.org/inet92_Randy_Bush.txt
133•BruceEel•7h ago•48 comments

Expanding Project Glasswing

https://www.anthropic.com/news/expanding-project-glasswing
137•surprisetalk•8h ago•180 comments

Preparing for KDE Plasma's Last X11-Supported Release

https://blog.davidedmundson.co.uk/blog/596/
115•jandeboevrie•7h ago•141 comments

Love systemd timers

https://blog.tjll.net/you-dont-love-systemd-timers-enough/
305•yacin•11h ago•195 comments

BQN: What Is a Primitive?

https://mlochbaum.github.io/BQN/commentary/primitive.html
28•tosh•3d ago•1 comments

My thoughts after using Clojure for about a month

https://www.acdw.net/clojure/
14•speckx•1h ago•0 comments

Great Question (YC W21) Is Hiring Applied AI Interns

https://www.ycombinator.com/companies/great-question/jobs/J5TNvQH-ai-engineer-intern
1•nedwin•9h ago

Made a Tool to Streams Changes from Microsoft SQL Server to Apache Kafka

https://github.com/Niyko/Athena
8•hyvr_official•2d ago•3 comments

Microsoft announces Scout, an autonomous AI agent built on OpenClaw

https://www.computerworld.com/article/4180103/microsoft-unveils-scout-an-autonomous-ai-agent-buil...
56•EvanZhouDev•3h ago•52 comments

Age verification for social media, the beginning of the end for a free internet?

https://mullvad.net/en/blog/age-verification-for-social-media-the-beginning-of-the-end-for-a-free...
393•StrLght•22h ago•290 comments

Show HN: RePlaya – self-hosted browser session replay with live tailing

https://github.com/s2-streamstore/replaya
27•shikhar•3h ago•4 comments

Rethinking search as code generation

https://research.perplexity.ai/articles/rethinking-search-as-code-generation
58•1zael•4h ago•18 comments