make the philosopher leaving the table more visible

This commit is contained in:
jacekpoz 2024-06-07 18:06:09 +02:00
parent ebba88eb35
commit 9e446204cc
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
3 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ procedure Main is
Second.Put_Down; Second.Put_Down;
First.Put_Down; First.Put_Down;
end loop; end loop;
Put_Line ("Philosopher" & Positive'Image (ID) & " is leaving"); Put_Line ("(!) Philosopher" & Positive'Image (ID) & " is leaving");
end Person; end Person;
Forks : array (1..5) of aliased Fork; Forks : array (1..5) of aliased Fork;

View file

@ -44,7 +44,7 @@ func philosopher(name string, leftFork, rightFork *sync.Mutex) {
dining.Done() dining.Done()
fmt.Println(name, "left the table") fmt.Println("(!)", name, "left the table")
} }
func main() { func main() {

View file

@ -77,7 +77,7 @@ function philosopher(p, t)
end end
println("$(p.name) is satisfied") println("$(p.name) is satisfied")
println("$(p.name) left the table") println("(!) $(p.name) left the table")
end end
function runall(tasklist) function runall(tasklist)