Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Forking a Perl Process, and pipe

Forking a Perl Process, and pipe

If you want a Perl process to perform two tasks in parallel, you can use threads or forks, and forks are the recommended way at present as thread support is a bit too flaky. When you fork a process, you're left with a parent and a child process, with each of them designed to perform a task. In order for these two proceses to co-operate once they've been split off, you can open a pipe prior to forking, and that gives you a two way channel using file handles for later communication. If either of the resulting processes needs to contact the other asyncronously, it can use a signal - a subject that we can also cover on our Perl courses.


Next ... random image ... a slide show ... image from list below


© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho