allocateProcess SHOULD be completed. UNTESTED!