LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-14-2005, 09:58 AM   #1
arunachalam
Member
 
Registered: Sep 2005
Posts: 53

Rep: Reputation: 15
Context switch


Sir,

What did context switch mean?

Regards,
Arunachalam.
 
Old 12-14-2005, 10:10 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
The term refers to switching the CPU from running one process to running another.
 
Old 05-31-2007, 11:10 PM   #3
sekhar
LQ Newbie
 
Registered: May 2007
Posts: 8

Rep: Reputation: 0
context switch

Hi ,
Context switch means CPU changing from one process/thread to antoher process/thread . During this switching from one process to another it has to save the state of the current active running process so that next time it gets to the same process it can retrive the state and continue . comtext switch may happen if priority of any process in the run queue is greater than the current active running process or if u r using round robin scheduling policy ,if the time slice of the current active running process completes control of the cpu is given to next process in the run queue.

hope u r clear.

sekhar

Last edited by sekhar; 05-31-2007 at 11:12 PM.
 
Old 06-15-2009, 01:21 PM   #4
pckreddy
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Context switching

Hello,
In linux kernel 2.6.25, May i know how the context switching is implemented in the code. I understood that scheduler.c deals with context switching but i am not clear about how does a signal or interrupt cause the CPU to context switch in the kernel code of Linux 2.6.25. It would be helpful if anyone can suggest me the .c files that i have to look into if i want to understand how context switching is done.
Thank you,
Chandan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Context switches balteo Linux - General 0 09-06-2005 07:09 AM
thread switch results in kernel stack switch superstition Linux - General 1 05-17-2005 11:48 PM
context of a library perfect_circle Programming 2 03-17-2005 12:14 PM
set up DSL thru SWITCH - winXp connected to SWITCH too husz Linux - Newbie 5 04-22-2004 12:08 AM
In what context do you use Linux? zikhermm Linux - General 12 10-08-2001 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration