How i write Java application that sorts an array of integers using two threads. The rst thread
sorts the rst half of the array, the second the second half. Both threads should run in parallel....
Type: Posts; User: zooro
How i write Java application that sorts an array of integers using two threads. The rst thread
sorts the rst half of the array, the second the second half. Both threads should run in parallel....
hi all i need ur help in how i can .....
sort array using ,,,, 2 threads...
here is my coad
I Got it :) ..... it were fork the parent every time where it should fork the child.......Here the right coad ......
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include...
Thank u oogabooga http://im.cprogramming.com/images/statusicon/user-online.png
i did not get your point ...why I breack out the loop??!!
#include <stdio.h>
#include <sys/types.h>
#include...
Here what I should get if I enter the following
(An example for a sequence of length three):
Sara@dell:~/OSSS$ gcc –o file file.c
Sara@dell:~/OSSS$ ./file 3
Creating process sequence of...
I just want to know, how i can delete ALL message queues from the system thruogh a C program.
what is wrong ....?!!!
i dont get right ....any hints??
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
Woow ......anduril462 Thank u very much ....very good explaination .. I think in unix we use sleep() insted of wait () yah ????!!!
thank u
anduril462 http://im.cprogramming.com/images/statusicon/user-online.png
..... i try to draw .. i am not sure is it 64 ???
ech fork has 2 process
each loop 2 fork ...
loop1 :
Thank you .....anduril462 http://im.cprogramming.com/images/statusicon/user-online.png
yah it should be ...
for(cont=0;cont<N;cont++)
but still it dosent work .....
when i enter any number like 3
i only get this line without sequences...
Creating process sequence of length 3
oogabooga
thanku .... do u mean like this ....
but still therer is error ....
#include <stdio.h>
#include <sys/types.h>
hello ...I dont know if here is the right place for my question :
Write a C program linear.c that creates a sequence of processes with a given length. By
sequence it is meant that each created...
Consider the following C program.
#include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } }
How many processes are created when running this program (including the...
hello ...I dont know if here is the right place for my question :
Write a C program linear.c that creates a sequence of processes with a given length. By
sequence it is meant that each created...