Search Results

Search: Posts Made By: bb666
Forum: Programming 02-27-2002
6,557
Posted By bb666
command line input in c code can be inserted...
command line input in c code can be inserted using the execve() command.
you could make a process that executes the first command and then sends the results through a pipe to a child that executes...
Forum: Programming 02-26-2002
9,436
Posted By bb666
i was able to make a father and his son...
i was able to make a father and his son communicate through a pipe but the real problem is: in my example i have no control over when a process is created so i have no control over who is reading...
Forum: Programming 02-21-2002
9,436
Posted By bb666
pipe help
i made a lot of processes. here is the code:

main()
{
printf("\nEnter K="); scanf("%d",&k);
printf("Enter L="); scanf("%d",&l);
printf("\nFather id=%d\n",getpid());
x=0;
makechild();
...
Forum: Programming 02-09-2002
4,297
Posted By bb666
simple fork question
When executing this simple program:

#include <unistd.h>
void main()
{
int f;
printf("\n Parent procces ID=%d\n",getpid());
f=fork();
if(f==0)
{
...
Forum: Programming 02-03-2002
11,027
Posted By bb666
Nope, not quite. I was able to make a father...
Nope, not quite.
I was able to make a father process with more then one child by myself. But what I really want is after creating a number of child prcesses, starting with one of them as a father,...
Forum: Programming 01-25-2002
11,027
Posted By bb666
Yep. That's one way to do it or you could just...
Yep. That's one way to do it or you could just send a stop signal so the child processes won't waste your memory for nothing. Just replace for(;;)
with kill(getpid(),SIGSTOP).
That's all fine and...
Forum: Programming 01-23-2002
11,027
Posted By bb666
I had the same problem with one of my projects...
I had the same problem with one of my projects (you can see it if the thread called 'making a process tree') and getting more child processes than i expected was really a nasty problem.
Still...
Forum: Programming 01-20-2002
5,621
Posted By bb666
As far as I know ( I'm no expert :) ) if you want...
As far as I know ( I'm no expert :) ) if you want to work with signals you should
include signal.h
Forum: Programming 01-14-2002
7,740
Posted By bb666
just more info about my problem: if i just use...
just more info about my problem:
if i just use some For commands and fork i get a lot of extra (unwanted) sons in my tree. I finally made the tree look correct by stopping alll the sons after they...
Forum: Programming 01-14-2002
7,740
Posted By bb666
making a process tree
How can I make a process tree?
The tree must have X rows and each process must have Y sons.
All the processes must comunicate with their fathers.
Can anyone help me with that?
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy