Hi All, debein, I believe what you said. It was a misleading statement.
Did someone have a last chance top review my understanding and post back the clarifications. this would very usefull for my future understanding about the kernel. Please let me know am I on the right track, if not please let me know where am I missing. Regards, Mukund On 4/5/08, debian developer <[EMAIL PROTECTED]> wrote: > On Wed, Apr 2, 2008 at 11:52 PM, bhanu nani <[EMAIL PROTECTED]> wrote: > > Hi Fabio, > > > > My understanding: Semaphore are the tools to protect a region of code > > by bloking access to other threads access while the first thead is > > An important point to note here is that you are not protecting the > code, its the data structure > or variable you are protecting. > > > global x; > > up > > /* critical section - any thing*/ > > *fpos+=count; > > mystruct->size = *fpos; > > mystruct->xxx = *fpos+ count; > > down > > > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ
