added fork and policy scheduler to rw.c