Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7712299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:35:43+00:00 2026-06-01T01:35:43+00:00

The tutorials, manuals and other resources I read about fork() usually only contain examples

  • 0

The tutorials, manuals and other resources I read about fork() usually only contain examples which could be solved much better with threads. They just communicate, do some very basic tasks, and communicate again to share or display the results. I have the feeling that unless your intention is starting a foreign program, (by having the father continuing and the child starting that foreign program), threads are always easier to handle, more flexible, and safer than forks.

Is there any other area of application when a fork() would be superior to just using threads? Except for a virus, that is.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:35:45+00:00Added an answer on June 1, 2026 at 1:35 am

    You can use fork() as a simple way to generate a snapshot from an application without stopping the original application.

    Since the OS maps the process’s virtual memory as copy on write, you don’t really pay any cost except for data that has changed (plus OS overhead).

    Edit: Added answers from comments for the sake of later viewers.

    One typical example would be a web server (e.g., Apache). If a process crashes, it’s easy to restart cleanly — not so with threads. Using separate processes limits the damage you can get from a single process crashing. – Jerry Coffin

    fork() predates the various thread mechanisms by at least a decade. So, if you need portability to V7 UNIX, fork() is a much better choice. – Robᵩ

    fork() can be used to daemonize your process while keeping the monitor process alive. – Mark B

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What tutorials and libraries are available which can help beginners to develop 2D and
which are the best tutorials, books, software and practices to start and manage a
I can find tutorials about mapping textures to polygons specifying vertices etc. but nothing
I've been searching for tutorials about suffix tree for quite a while. In SO,
I'm aware that there are a hundred articles, tutorials and manuals on Mod Rewrite
looking tutorials for integrating OpenId feature in .net
The tutorials for creating blackberry applications seem to be severely limited. Even on the
Django tutorials everywhere use constant-set application name all around - in urls file, in
The RoR tutorials posit one model per table for the ORM to work. My
Are there any decent tutorials for setting up F# in Visual Studio 2005? Everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.