Lab1 - Questions

m0rity
Neuling
Neuling
Beiträge: 1
Registriert: 9. Nov 2016 19:31

Lab1 - Questions

Beitrag von m0rity » 9. Nov 2016 19:53

Hello,

we have some questions regarding the first lab.
  1. Do we have to do error handling for print functions?
  2. Do we have to do error handling for the wait function?
  3. Do we have to ensure that the message queue has already been created by the parent at the time the child tries to open it?
  4. In Questions 3.2,4.2 and 5.2 the term "multi-threaded software" is used. Does this strictly refer to software that makes use of multiple threads or does it also include software that uses multiple processes?
Thank you in advance.

username
Neuling
Neuling
Beiträge: 2
Registriert: 4. Nov 2015 10:28

Re: Lab1 - Questions

Beitrag von username » 12. Nov 2016 14:29

Do we have to do error handling for print functions?
This is up to you, but you should be able to explain your choice during testing.
Do we have to do error handling for the wait function?
Yes, if you dont have a very good reason for not doing it.
Do we have to ensure that the message queue has already been created by the parent at the time the child tries to open it?
You shouldnt use synchronization measures but you can make the correct execution order more likely to occur(for example by using sleep)
And you should implement proper error handling if it fails.
In Questions 3.2,4.2 and 5.2 the term "multi-threaded software" is used. Does this strictly refer to software that makes use of multiple threads or does it also include software that uses multiple processes?
It refers to software that makes use of multiple threads.

Antworten

Zurück zu „Archiv“