Skip to content

Commit 04834dd

Browse files
committed
Update background jobs documentation to clarify job number assignment process. Changed wording to specify sequential assignment when a job exits, enhancing understanding of job number recycling.
1 parent 1844731 commit 04834dd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

stage_descriptions/background-jobs-09-fy4.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ In this stage, you'll implement recycling job number indices.
22

33
### Recycling Job Numbers
44

5-
Job numbers are normally assigned sequentially: `1`, `2`, `3`, and so on.. However, when jobs finish, they are removed from the job table, allowing job numbers to be reused.
5+
Normally, job numbers are assigned sequentially: `1`, `2`, `3`, and so on. However, when jobs finish, they are removed from the job table, allowing job numbers to be reused.
66

77
When assigning a new job number:
88

@@ -65,7 +65,7 @@ $ jobs
6565
[1]+ Running sleep 100 &
6666
```
6767

68-
The tester will also restart your program and verify number reuse when a gap exists:
68+
The tester will also restart your program and verify number reuse when a job exits:
6969
```bash
7070
$ sleep 100 &
7171
[1] <pid>
@@ -93,5 +93,4 @@ The tester will verify that:
9393
### Notes
9494

9595
- Job numbers are recycled—they don't grow forever. After job 2 exits, the next job is `[2]`, not `[3]`.
96-
- Always assign the smallest available number, not just the next sequential number.
9796
- When the job table is empty, reset to `[1]`.

0 commit comments

Comments
 (0)