Re: A small change in the scheduler

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

 



If threads are created from a process then all threads will share the same
process address space (i.e. stack , registers etc), but when a parent process
creates a child process then another process address space gets created for
child process. But linux implements Copy on Write feature due to which the
child process will share the parent process address space until it is writing
on it.
So u can easily figure out the difference. And this difference is coming from
code.
Inform me if i m wrong
Anurag
--- Karane Mariano Vieira <karane@xxxxxxxxx> wrote:
> On 5/30/05, Anurag Verma <newanurag@xxxxxxxxx> wrote:
> > When the task state becomes TARK_RUNNING, at that moment it starts getting
> > timeslices.
> > Threads means what?? kernel thread or the threads that are executing in
> process
> > address space??
> > Anurag
> 
> I mean, in process address space.
> 
> 
> > --- Karane Mariano Vieira <karane@xxxxxxxxx> wrote:
> > > Hi All
> > >
> > > I would like to change the way the scheduler delivers the timeslices,
> > > it is the goal of a small homework in my university.
> > >
> > > I´d like to know:
> > >  - the exactly moment (in the code) the a task receives its timeslice
> > >  - Is there any differency between the code which deal with processes
> > > and threads
> > > ()
> > >
> > > --
> > > Karane.
> > >
> > > --
> > > Kernelnewbies: Help each other learn about the Linux kernel.
> > > Archive:       http://mail.nl.linux.org/kernelnewbies/
> > > FAQ:           http://kernelnewbies.org/faq/
> > >
> > >
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> > 
> 
> 
> -- 
> Karane.
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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