Skip to content

Commit c3f67ab

Browse files
teburdkartben
authored andcommitted
samples: philosphers: Fix typo in famous name
Dijkstra not djkstra Signed-off-by: Tom Burdick <[email protected]>
1 parent c657904 commit c3f67ab

File tree

1 file changed

+1
-1
lines changed
  • samples/philosophers/src

1 file changed

+1
-1
lines changed

samples/philosophers/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void philosopher(void *id, void *unused1, void *unused2)
147147

148148
int my_id = POINTER_TO_INT(id);
149149

150-
/* Djkstra's solution: always pick up the lowest numbered fork first */
150+
/* Dijkstra's solution: always pick up the lowest numbered fork first */
151151
if (is_last_philosopher(my_id)) {
152152
my_fork1 = fork(0);
153153
my_fork2 = fork(my_id);

0 commit comments

Comments
 (0)