Added a lot of multiprocessor support.

Unfortunately, most of it does not work properly.