I need to make a gateway from Ethernet to RS-485. I am using stream socket, and I am programming in windows nt. I would like to know how could I use some functions from unix in windows nt. I would like to use the function fork(). Which library it uses and how can I get it? Can I substitute fork using CreateThread, or do I need to CreateProcess.
PS:I have to make a server that gets the data from ethernet port and write to Serial port. My server has to accept a lot of connection.
Sounds like you want to use P Threads... P thread is not supported in the NT Environment. You need to find the pthread libraries for WIN32. Web site is http://sources.redhat.com/pthreads-win32
There is a bunch of sample programs with it to help you out!!!
I am running Oracle Database and after a while I keep getting this message whenever I execute any command.
I cannot execute any command even shutdown, whenever I execute any command , I get this message
/usr/bin/ksh: 0403-031 The fork function failed. There is not enough memory... (7 Replies)
I have three funcions f1, f2 and f3 .
f1 calls f2 and f2 calls f3 .
I have a global variable "period" which i want to pass to f3 .
Can i pass the variable directly in the definition of f3 ?
Pls help .
sars (4 Replies)
have this little piece of code in order to help you understand my question
int i, pid;
pid = fork();
fprintf(stderr, "fork failed\n");
printf("in Child\n");... (4 Replies)
I need a quick script that will serve as a sort of "real time monitor" for watching some log files. I am using Bourne shell in HP-UX 10.20. I have basically created a script that never ends, unless of course I manually terminate it. Here's the script (it's called qhistory):
echo "REAL... (3 Replies)