Discussion:
long.exe issues
(too old to reply)
Justin
2005-03-10 19:34:19 UTC
Permalink
I have fully implemented the project and I have no problems running Ping
and Pong, schedtest.ex, semtest1.exe, semtest2.exe or workload.exe

However, long.exe will not run if I try to run it BEFORE I run
workload.exe. If I attempt to run it AFTER I run workload.exe then it
runs perfectly well and correctly.

Also, I am not sure if it is intentional or not; but the updated Pong.c
does not call Destroy_Semaphore on the semaphores it accesses and
therefore leaves active semaphores when executing ping.exe & pong.exe

Thanks,
Justin
Joe Barrett
2005-03-11 00:54:22 UTC
Permalink
Post by Justin
Also, I am not sure if it is intentional or not; but the updated Pong.c
does not call Destroy_Semaphore on the semaphores it accesses and
therefore leaves active semaphores when executing ping.exe & pong.exe
The project description says [unless I'm remembering wrong] that we need
to ensure that a thread destroys all semaphores when it exists, even if
doesn't necessarily do it on its own - so that should be something we
implement.

Joe
Joe Barrett
2005-03-11 01:32:24 UTC
Permalink
Post by Justin
However, long.exe will not run if I try to run it BEFORE I run
workload.exe. If I attempt to run it AFTER I run workload.exe then it
runs perfectly well and correctly.
I'm having the same issue, but with schedtest.ex working fine after
running workload.exe, and if I run it before, it works the first time,
and the second time it seems to deadlock while context switching.

Has anyone else seen this problem or have a solution?

Thanks,
Joe

Continue reading on narkive:
Loading...