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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:08:42+00:00 2026-06-09T11:08:42+00:00

In embedded systems, still the trend has not shifted to multi-core processors completely for

  • 0

In embedded systems, still the trend has not shifted to multi-core processors completely for various valid reasons.

Hence it is still important to understand synchronization behaviour using various mechanisms and multi threading features with respect to uni processor systems. Also, whenever I face interviews, they ask me questions on the behavior of a particular C program on uni processor system.

So, if I want to analyze the Sample C programs on a uni processor systems, to check the behaviour of them at home, how would I do that? My CPU at home has a Core i3 processor. Is there a way I can ask my OS or compiler to check the behaviour forcebly by considering only one CPU?

Example:

int x=0;

Snippet-1

    while(x);
    x++;

Snippet-2

    while(!x);
    x--;

Considering a uni processor system, I want to check the behaviour of a C program in which

  • Snippet 1 and snippet 2 are in multiple threads
  • Snippet 1 is in the main program and snippet 2 is in ISR
  • Snippet1 and Snippet2 are both in two different ISRs (Consider interrupts are caught on priority, and also when inside ISR, if there is a new interrupt coming with higher priority, then the interrupt with highest priority is executed immediately – Ex: Reset)

In the above questions, my primary goal is to identify if there will be any dead locks, and if present, need to identify the solution. Please put in your thoughts. Thanks.

  • 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-09T11:08:43+00:00Added an answer on June 9, 2026 at 11:08 am

    I suggest you to create a uni-processor system by compiling new kernel with only one core enabled in i3.(Obviously performance will be less.)

    Follow the steps in following link,

    http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html

    While configuring,

    go to Processor type and Features–>

    Un-check the Symmetric Multiprocessing Support.

    and study the instruction to create uni processor system.

    enter image description here

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

Sidebar

Related Questions

My company does Linux embedded systems using Freescale PowerPC processors. Some years back I
for a project that targets embedded systems (such as a NAS) I am looking
I'm working on an embedded systems which provides an interface with certain types. The
I'm working on a big project for embedded systems. The project is a library
I mostly use SlickEdit and eclipse while working on embedded systems. Once in a
I am looking at approaches to Unit Test embedded systems code written in C.
I am looking to start from scratch to learn to program embedded systems. After
I have several embedded linux systems that I want to write a 'Who's Online?'
In an embedded systems unit that I'm taking at uni next year, we will
We have a number of embedded systems requiring r/w access to the filesystem which

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.