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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:16:52+00:00 2026-05-24T02:16:52+00:00

I will admit I did minimal research for this question (just a few shallow

  • 0

I will admit I did minimal research for this question (just a few shallow google searches). Do threading packages (pthreads specifically, but my question applies to all x86 unix user thread libraries) save segment registers (fs, cs, ds, etc) per thread? In other words, does each thread have its own copy of segment registers?

  • 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-24T02:16:53+00:00Added an answer on May 24, 2026 at 2:16 am

    On most modern OSes, the segment registers have specific meanings determined by the OS. The OS thread libraries will ensure that the registers are set correctly for each thread at all times. e.g. on Windows, the FS register points to a segment with thread-specific data, which is thus updated with every thread switch, whereas the DS register refers to a process-wide segment, so is the same for all threads within a process.

    If a platform allows the user to set segment register values, then I would expect them to be properly preserved across thread switches, just like any other register.

    In general, I would expect the segment registers to be preserved, because that is easier than looking up what they “should” be, and leads to the least possibility of surprise.

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

Sidebar

Related Questions

First of all, I will admit I am a novice to web services, although
I'm using custom WordPress categories for some probably unintended functions, I will admit (things
I will openly admit that I fall on the side of Test Driven Development.
I've made an Area project for my ASP.NET MVC application called 'Admin'. This will
Sorry for the newbie question, but I can't seem to figure this out. I
I asked a similar question but I did not provide sufficient details and I
I've just started learning CodeIgniter, and I'm following this authentication tutorial by nettuts+. I
I have to admit that I just, well, screwed the pooch on a production
I understand that this is a very broad question, but a short it depends
Apologies, but I did ask this at the wordpress site but it doesn't seem

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.