Encerrado

need help please

I would like to create a multi-processing application that employs semaphores only. A parent process will create 6 children processes named P0 . . . P5 located initially at locations A . . . I respectively as shown in Figure 1.

1: The whole system 1. Upon an order from the parent, processes P0, P1 and P2 start moving towards location G.

2. Once P0, P1 and P2 reach location G, they walk together to location H.

3. Once P0, P1 and P2 get to location H, processes P3 and P4 start moving towards location H and at the same time process P5 starts moving towards location I.

4. When either P3 or P4 gets to location H, P0 starts moving back to location G. When both P3 and P4 get to location H, P1 . . . P4 start moving to location I.

5. When processes P1 . . . P5 reach location I, process P0 starts moving back to location A.

6. Once process P0 gets to location A, P1, P2, P3 and P4 start moving back to location H while process P5 starts moving back to location F.

7. Once process P5 gets to location F, process P3 starts moving back to location D while process P4 starts moving back to location E.

8. When either P3 gets to location D or process P4 gets to location E, processes P1 and P2 start moving to location G.

9. When both process P3 is back to location D and process P4 is back to location E, process P1 starts moving back to location B and process P2 starts moving back to location C.

10. Once process P1 is back to location B and process P2 is back to location C (meaning we’re back to the original configuration where each process is back to its home location), go back to step 1 above unless the above behavior has been done for 10 times.

11. The parent process must kill all its children, free the semaphores facility it is using and exit.

What you should do ((((((USING C LANGUAGE)))))) • Write the code for the above system. • Compile and test your program. • Check that your program is bug-free. Use the gdb debugger in case you are having problems during writing the code (and most probably you will :-). In such a case, compile your code using the -g option of the gcc. • Send the zipped folder that contains your source code and your executable(s) before the deadline. If the deadline is reached and you are still having problems with your code, just send it as is! ((((((USING C LANGUAGE))))))

Habilidades: Linux, Programação C

Veja mais: mp3 files need help transcribing, iphone word processing application, need help adding google adsense site, freelance need help wsdl file, open source projects need help, need help text website, need help building resume, need help fixing cre loaded, coldfusion website need help, order processing application, online order processing application software, need help finishing work, need help design hair salon, need help mcafee secure vulnerabilities, need help cloning website, zen cart need help, need help designing myspace web, need help install creloaded, need help in writing 7 eleven application

Acerca do Empregador:
( 0 comentários ) Ramallah, Palestinian Territory

ID do Projeto: #29927270

2 freelancers estão ofertando em média $25 nesse trabalho

alextutberidze

Hello Sir! I'm interested in your project, I have read all your description carefully and I understand your requirement, If you hire me, you will get the perfect results you want. I'm a C/C++ developer with 5+ years Mais

$30 USD in 7 dias
(6 Comentários)
2.5
doll02

i am interested in this opportunity and have right skills for the job. I am an Electronics Engineer and possess all the skills for the required job like Microsoft Office, designing and Programming, C, C++, Matlab, Lab Mais

$20 USD in 15 dias
(0 Comentários)
0.0