bs@alice.UucP (Bjarne Stroustrup) (04/14/86)
> From: reddy@uiucdcs.CS.UIUC.EDU > Subject: C++ and multitasking > > I recall that the earlier Class-C had multitasking (or some simulation of > it). Has that been thrown out in C++? Or, is there some library that > provides it? ``C with classes'' had a library of classes and functions for event driven simulation in the Simula-style. One of the original reasons for designing ``C with classes'', that is now C++, was to be able to have such a library. The task library still exists (virtually unchanged), is in use, and is shipped as part of the C++ library. It is documented in the C++ release notes. Unfortunately, it only runs on VAXs and some 3Bs. It has been ported to M68K machines, but the source is not shipped. It is good for simulation, OK for many other uses of co-routines, and not suitable for any form of real parallelism. The main reason it is not described in the book is that I'm convinced that given C++ as implemented today I or someone else can do a much better job than I could using the first version of ``C with classes'' 6 years ago.