You'd be surprised at how doable that is if you actually tried. It's the same as every other problem in programming: break it down in to two pieces, figure out which one is the easier, if it is trivial solve it, otherwise recurse.
You'd need an overall sketch of the architecture before you began but once you have that worked out it's 'just programming' to get you to the finish line.
The hardest part to get right is security, especially if you go multi-user, but since you just specify 'multitasking operating system' that one is somewhat limited in scope.
(such thinking probably gave us windows ;) )...