MS-DOS 4.0 had a multitasking release, but it was not popular and only available through retail channels. IBM didn't want it so there were OEM MS-DOS releases of 4.0 that didn't have multitasking, and that's what you got when you bought an IBM PC. This meant it didn't get a lot of support and was discontinued after MS-DOS 4.1. If it sounds like a mess, it's because this was all when IBM and Microsoft were not very happy with each other, which is kind of why everyone mostly jumped from MS-DOS 3.3 (IBM and MS mostly cooperative) to MS-DOS 5.0 (MS independent).
DOSSHELL supported task switching, but only one process could execute at a time, and all tasks had to fit in memory.
https://en.wikipedia.org/wiki/MS-DOS_4.0_(multitasking) https://virtuallyfun.com/2013/03/17/european-ms-dos-4-00-aka...
It should not be confused with the mostly unrelated DOS 4.0 later released.
A Microsoft executive later said the multitasking DOS should probably not have been named "4.0" because it created a lot of confusion.
I have demo disks for download on my blog with the service configured. It's readily Googled.