Re: General Question on Scheduler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




==>1. How does the scheduler perform a task switch i.e. where do I find the
==>exact code that performs the task switch.

The function switch_to(prev,next,prev) inside the schedule() does the context
switch. the macro is defined in asm/system.h

==>2. When does the scheduler get control so that it can perform the task
==>switch. i.e is the scheduler called from the timer interrupt or something
==>like that?

Yes scheduler is called from timer interrupt.

==>4. Does the linux kernel use the facilities provided by the processor ( I
==>think x86 has facilities for task switch ) for the task switching?

Ofcourse switching is a processor dependent work.....see the code.

Regards
Ketan
***
"I am become death, shatterer of worlds. "
- Robert J. Oppenheimer (1904-1967) (citing from the Bhagavad Gita, after witnessing the world's first nuclear explosion)
***

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux