Before revision:  We give an optimal algorithm for scheduling multistage jobs  and an exact response time analysis of our algorithm .
After revision:  We give an optimal algorithm for scheduling multistage jobs in an M/G/1 queue and an exact response time analysis of our algorithm .