BEGIN
Pop(free, newprocess);
IF newprocess = NIL THEN
- NEW(newprocess);
+ ALLOCATE(newprocess,SIZE(ProcessDescriptor));
ALLOCATE(newprocess^.wsp, WorkSpaceSize)
END;
WITH newprocess^ DO
PROCEDURE InitChannel(VAR ch: Channel);
(* Initialize the channel ch *)
BEGIN
- NEW(ch);
+ ALLOCATE(ch, SIZE(ChannelDescriptor));
WITH ch^ DO
InitQueue(senders);
owner := NIL;
BEGIN
InitQueue(free);
InitQueue(ready);
- NEW(cp);
+ ALLOCATE(cp,SIZE(ProcessDescriptor));
WITH cp^ DO
sons := 0;
father := NIL