From 9e446204cc44e2a36e0a481dd02e758724edfd8c Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 7 Jun 2024 18:06:09 +0200 Subject: [PATCH] make the philosopher leaving the table more visible --- lab4/zad1/src/main.adb | 2 +- lab4/zad2/main.go | 2 +- lab4/zad3/main.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lab4/zad1/src/main.adb b/lab4/zad1/src/main.adb index 1343529..83dee6d 100644 --- a/lab4/zad1/src/main.adb +++ b/lab4/zad1/src/main.adb @@ -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; diff --git a/lab4/zad2/main.go b/lab4/zad2/main.go index 9a7eb24..3c1ef81 100644 --- a/lab4/zad2/main.go +++ b/lab4/zad2/main.go @@ -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() { diff --git a/lab4/zad3/main.jl b/lab4/zad3/main.jl index e19b7f6..d838145 100644 --- a/lab4/zad3/main.jl +++ b/lab4/zad3/main.jl @@ -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)