[LIP] Re:Re: A few Queries
"suresh kumar" <suresh_vin-/iAzse42w/[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
> > > 2) I read in lot many places, that two tasklets of the same type > > can not run simultaneously. But I haven't seen ne type of the > > tasklet defined. Does the type mean one of the 4 softirqs. Is it > > like if a keyboard driver raises a tasklet of type TASKLET_SOFTIRQ, > > a sound card diver also raises a tasklet of type TASKLET_SOFTIRQ, > > only one of them will be running and not both a the same time on > > SMP. I just want to know is that true. > > Or is it like, two tasklet from the same driver can't be run > > simultaneously on diff processors on SMP. > > Correct my understanding. > > The I-ll-do-it-later reference I sent to the list earlier should answer > these questions ? > > TASKLET_SOFTIRQ is not a type of tasklet. It's a type of softirq. If > you search for tasklet_init() in the kernel sources, you'll find about > 60 hits as of 2.6.6. Each one of them is a type of tasklet. Does it mean, during tasklet_init, we register a callback function which will be called when ever a tasklet is scheduled for execution and based on this function we are defining the type, and if we raise a more tasklets which calls this function, then no tasklets of this same type can be processed simultaneously. So for network processing one should never use tasklets. Is that correct? -- ______________________________________________ IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes! Powered by Outblaze ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504