123456789101112131415161718192021222324 |
- package main
- type Process struct {
- name string
- arriveTime int
- serveTime int
- beginTime int
- finishTime int
- roundTime int
- aveRoundTime float64
- clock float64
- isFinished bool
- priority int
- }
- func newProcess(name string, arriveTime int, serveTime int) *Process {
- return &Process{
- name: name,
- arriveTime: arriveTime,
- serveTime: serveTime,
- clock: 0,
- isFinished: false,
- }
- }
|