Posts Tagged ‘technology’

CreateProcess And fork() In Windows Differences And Implementation

Although there is a one-to-one mapping between C UNIX APIs and Win32 APIs for most of the APIs like open to CreateFile, read to ReadFile, write to WriteFile, ioctl to DeviceIOControl, close to CloseFile, and so on. Still, While Porting applications from UNIX to Win32 natively,
One of the largest areas of difference is in the process model. UNIX has fork; Win32 does not. Depending on the use of fork and the code base, Win32 has two APIs that can be used: CreateProcess and CreateThread. A UNIX application that forks multiple copies of itself can be reworked in Win32 to have either multiple processes or a single process with multiple threads read Porting from UNIX to Win32 for further study.

What’s the best way to duplicate fork() in windows?
Forking a Win32 Process

Process Creation in cygwin
The fork call in Cygwin is particularly interesting because it does not map well on top of the Win32 API. This makes it very difficult to implement correctly. Currently, the Cygwin fork is a non-copy-on-write implementation similar to what was present in early flavors of UNIX.  The first thing that happens when a parent process forks a child process is that the parent initializes a space in the Cygwin process table for the child. It then creates a suspended child process using the Win32 CreateProcess call.

Read further to know why process creation in cygwin is slow? windows fork process; dynamic forking process win32

Here are Some Differences between CreateProcess() in WIn32 and fork()/exec(); has two primitives: fork (create new process identical to calling process) and exec (replace details of current process with those loaded from executable file).
Fork also copies open file descriptors, including network sockets (like filehandles) are inherited by children.
Windows has one primitive: CreateProcess, which is roughly equivalent to fork-then-exec.

Number of View :13699

Tags: , , ,

1 Comment Perfect Example Of Personal Computing For Transforming Lives In Emerging Markets, an innovative solution by HP labs india,
Which provides a new way of information sharing. Five years before nobody thought of facebook, twitter and youtube, today they are everywhere on each website. This is perfect example of personal computing, narrates HP labs India director Dr. Prith Banerjee.
In 2008 HP Labs India started working on this project, and came up with technology called Siteonmobile. This is unique in nature because it captures not only internet users but also non internet users by using IVR system. User has to dial in to specific number of send ans SMS to specific number to get the information. The technology behind it uses is Tasklets, which interacts with cloud and provides the results to user, Hiding the complexity of the system.
This service is made available free by HP Labs India.
visit official blog for comments and recent updates.
Tasklets represents a sequence of interactions needed to perform a task on the web.
Youtube video on Tasklets for Simplifying Web (SWAN project) by HP Labs India

Number of View :3395

Tags: , , , ,

No Comments

Content Protected Using Blog Protector By: PcDrome.