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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:52:04+00:00 2026-05-26T16:52:04+00:00

I was interested in doing a proyect about face-recognition (to make use of SIMD

  • 0

I was interested in doing a proyect about face-recognition (to make use of SIMD instructions set). But during the first semester of the current year, I learnt something about threads and I was wondering if I could combine them.

When should I avoid combining multithreading and SIMD instructions? When is it worth it to do it?

  • 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-26T16:52:04+00:00Added an answer on May 26, 2026 at 4:52 pm

    Saving x87/MMX/XMM/YMM registers can take quite some time and cause significant
    cache thrash. Normally, saving and restoring of FP state is done in a lazy manner: upon a context switch, the kernel remembers the current thread as the “owner” of the FP state and sets the TS flag in CR0 and – this will cause a trap to the kernel whenever a thread attempts to execute an FP insn. The FP state of the old thread and the FP state of the currently executing thread are saved and restored, respectively, at that time.

    Now, if for extended periods of time (several or many context switches) no other thread than yours uses FP insns – the lazy policy will cause no FP state to be saved/restored whatsoever and you won’t get performance hit.

    Since we’re obviously talking about multiprocessor system, the threads, which execute your algorithm in parallel won’t conflict with each other because they should execute on their own CPU/core/HT and have a private set of registers.

    tl;dr

    You shouldn’t be concerned with the overhead of saving and restoring FP registers.

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

Sidebar

Related Questions

I'm interested in doing some development against the Safari browser but I'm not sure
I'm interested in doing something like an enum but where the increments aren't always
I'm a .NET web developer, who's bought a Mac, and is interested in doing
I am trying to get started doing some Silverlight development. I am interested in
I'm primarily interested in popular and widely used compilers, such as gcc. But if
I am interested in creating a website entirely in silverlight (personal reasons) but I
I've asked about this earlier but the question itself and all the information in
I know this sort of question has been banded about before but I've not
I'm about to write a set of methods on a server application that take
im interested how many api calls per second or per minute i can do

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.