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 6806129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:40:22+00:00 2026-05-26T19:40:22+00:00

1.only fork 2. only exec 3. both fork & exec This may be a

  • 0

1.only fork 2. only exec 3. both fork & exec

This may be a simple question, but I’m really confused with it. I’m really a newbie and don’t know how to figure it out.

I’ll be very glad if someone can explain it to me.

Thank u very much.

  • 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-05-26T19:40:22+00:00Added an answer on May 26, 2026 at 7:40 pm

    indeed, many.

    use strace top to see.


    ADDITION:

    In fact, there is no fork but an exec:

    [pengyu@pengyu-Studio-1747 temp]$strace top 2> a.txt
    [pengyu@pengyu-Studio-1747 temp]$cat a.txt | grep fork
    [pengyu@pengyu-Studio-1747 temp]$cat a.txt | grep exec
    execve("/usr/bin/top", ["top"], [/* 60 vars */]) = 0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

int main(){ fork(); } I know this is a newbie question, but my understanding
Hopefully a simple question. I'm trying to learn, simultaneously, fork(), pipe(), and waitpid() and
Details: Only disable after user clicks the submit button, but before the posting back
I've been trying various methods (popen, pipes + fork/exec, ...) to read a child
I have a Perl script that does a fork/exec to start another tool in
Take this scenario: I decide to 'fork' a codebase on github.com, and start doing
As I am currently doing this project in only C, I've up untill this
I am making a server and I use fork() for creating child processes but
Call me crazy but I'm planning to Fork wordpress. I'm planning to swap out
I'm writing a simple C program using fork() to create a binary tree of

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.