473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Fork() on windows?

Hi,

I'm converting some Unix code to Windows. I need to fork() in a section
in my code. Nearest Windows functionality is CreateProcess().

Any ideas or guidelines (gotchas) on best practices/how to procedd?

Thanks

Nov 17 '05 #1
1 1239
Susan Baker wrote:
I'm converting some Unix code to Windows. I need to fork() in a section
in my code. Nearest Windows functionality is CreateProcess().

Any ideas or guidelines (gotchas) on best practices/how to procedd?


Depending on what you actually need the nearest Windows functionality
may be even threads (_beginthreadex()) or fibers (CreateFiber()). Unix
processes aren't always translated into Windows processes. Can't help
you more without further details on relation between old and new unix
process.
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Josh Denny | last post by:
I am trying to write a simple file transfer server in perl that will reside of both windows and linux platforms. Basically, it accepts a connection, forks a process, and then should close the...
2
by: blah | last post by:
i m using Windows XP, and by tomorrow i will have have fedora core installed too. the problem is, when i use these "fork() and exec()" my windows doesnt do anything, python gives an error about the...
16
by: mishra | last post by:
Hi, i thied the following code.. # include<stdio.h> int main() { int a; printf("Hello..."); a=fork(); printf("hi\n"); return(0);
0
by: spacelabstudio | last post by:
Hi, I'm observing some weird behavior and have written the following test program to demonstrate. This works under cygwin/WinXP but not Gentoo(kernel 2.6): huh.py...
3
by: anders | last post by:
Hi! I have a problem converting a cgi-program to run on windows. The problem is that the CGI is collecting a lot of information (a orderhandlingsystem) and under unix the main process makes a...
5
by: JoeW | last post by:
Now before I go into detail I just want to say that this is purely for my own benefit and has no real world usage. I remember way back when the tool for *nix systems called forkbomb was created. I...
3
by: raghav82 | last post by:
For sending the message in linux environment- the perl script however uses fork() to release the client process as soon as possible and then in the child process handles the message send. For...
2
by: ganeshp | last post by:
Hi , Below given is my code: This generates the below given error. Can any one help me out on this error please ? Actually i have a huge project written using C++ language on linux , I want...
5
by: E2CMonkeyBoy | last post by:
Quick Intro: was thumbing through a book on Programming Windows in C# and was wondering if I shouldnt fork my developement: I've written a program in windows script, and now a more robust version...
4
by: Brendan Miller | last post by:
I want to spawn a child process based on an external executable that I have the path for. I then want to wait on that executable, and capture it's output. In the os module, fork is only...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.