make the philosopher leaving the table more visible
This commit is contained in:
parent
ebba88eb35
commit
9e446204cc
3 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ procedure Main is
|
|||
Second.Put_Down;
|
||||
First.Put_Down;
|
||||
end loop;
|
||||
Put_Line ("Philosopher" & Positive'Image (ID) & " is leaving");
|
||||
Put_Line ("(!) Philosopher" & Positive'Image (ID) & " is leaving");
|
||||
end Person;
|
||||
|
||||
Forks : array (1..5) of aliased Fork;
|
||||
|
|
|
@ -44,7 +44,7 @@ func philosopher(name string, leftFork, rightFork *sync.Mutex) {
|
|||
|
||||
dining.Done()
|
||||
|
||||
fmt.Println(name, "left the table")
|
||||
fmt.Println("(!)", name, "left the table")
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -77,7 +77,7 @@ function philosopher(p, t)
|
|||
end
|
||||
println("$(p.name) is satisfied")
|
||||
|
||||
println("$(p.name) left the table")
|
||||
println("(!) $(p.name) left the table")
|
||||
end
|
||||
|
||||
function runall(tasklist)
|
||||
|
|
Loading…
Reference in a new issue