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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:45:35+00:00 2026-06-12T23:45:35+00:00

I am doing some analysis of a multi-threaded application using the Apple Instruments tools,

  • 0

I am doing some analysis of a multi-threaded application using the Apple Instruments tools, which give a lot of information I’m trying to make sense out of. I am trying to find a good resource to describe the thread states which are color-coded in the tool. I’ve been looking into XNU Kernel documentation and books but without much luck.

There is a lot of yellow and purple which correspond to the “preempted” and “supervisor” modes (the full color chart is described in the upper right pop up in the attached image). Given I’m spending so much time in these states as opposed to the “running” state (in blue), I would be particularly interested in knowing what they refer to and whether it is possible/desirable to minimise the time spent in these states.

enter image description here

  • 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-12T23:45:36+00:00Added an answer on June 12, 2026 at 11:45 pm

    Preempted = Your thread was runnable, and was ready, willing and able to execute, but was kicked out (context switched) in favor of some other thread. This means that your thread wasn’t sleeping on I/O or an event, and was actually doing something CPU-intensive. Due to either quantum expiration or some other thread of greater priority, however, it was forced out of the CPU.

    Supervisor = Your thread was in kernel mode. USually, this means the kernel was servicing a system call made by your thread.

    Neither of them is strictly bad, but:

    Avoiding preemption: Not much you can do here, besides play with your priority – increase your priority using a negative nice value, or , directly, using the setpriority API. You can also use scheduling policies to boost your thread’s preference, and cajole the Mach scheduler (the underlying decision maker of threads) to put your threads first, and give them more CPU time.

    Avoiding supervisor mode: You might be heavy on the system calls. Again, this isn’t necessarily a bad thing.

    Hope this helps,

    TG

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

Sidebar

Related Questions

I am doing some Graph Theory analysis using the Java Jung 2.01 graph package.
I'm doing some data analysis over the judge appointment system in France, and using
I'm doing an analysis of request-based web application frameworks to determine which one would
I have been doing some data analysis in R and I am trying to
I'm doing some exploratory analysis on a dataset with 27 variables, of which maybe
I've got a program which is doing some geometrical analysis in a background thread.
I'm doing some amateur image analysis using Python, specifically Numpy, PIL and OpenCV. However,
I have been doing some performance analysis on an application I am working on.
Using SQL Server 2005. This is something I've noticed while doing some performance analysis.
I'm writing a Java GUI application that is doing some XML parsing and analysis.

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.