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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:41:18+00:00 2026-06-07T09:41:18+00:00

If I start a screen using screen -dmS screenname java -jar jarfile.jar , will

  • 0

If I start a screen using screen -dmS screenname java -jar jarfile.jar, will the process java jar jarfile.jar always have a PID that is one value higher than the screen?

As for exec – if I did exec java -jar jarfile.jar, would the process ID of this Java process be one higher than the value of the PID of the shell?

  • 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-07T09:41:20+00:00Added an answer on June 7, 2026 at 9:41 am

    No. PIDs aren’t that predictable. When two processes are started very close to the same time, their PIDs are usually close together, but there’s always the chance that another process started at the same time (another user, a cron job, a daemon that spawned a child in response to some network traffic…) and will get between them.

    Also, sequential PID allocation wraps around from a maximum value to a low number. Some systems have 32-bit PIDs but I think 16-bit is more common, so the wrap-arounds are pretty frequent, with a max at 32767 and a minimum of about 700.

    Some systems have randomized PIDs as a security feature.

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

Sidebar

Related Questions

I'm using VS2008, and I have a project that will not start when I
I have a Screen name DownloaderScreen when the screen start it will start download
I have to make an on-screen keyboard using JAVA on linux. the problem is
I start the Windows On-Screen-Keyboard like that: s_onScreenKeyboard = new Process(); s_onScreenKeyboard.StartInfo = new
I have an android app that starts with a simple screen and a start
I start a iPad game using cocos2d.. When I add a full screen image
i have a splash screen at start up. with the following coding public class
When I start a new Java project in eclipse, the first popup screen allow
During compilation process many errors are thrown on the screen. To start resolving them
I have a home-screen widget that has an icon that starts/so pose to bring

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.