Hindi Love Shayari SMS

Love Shayari

Teri Nigahon Ke Yoon Hi Kayal The Hum
Kya Jaroorat Thi Aajmane Ki
Yoon Hi Behosh Pade Hai Teri Rahon Main
Kya Jaroorat Thi Alag Se Muskurane Ki…


Category: Uncategorized | Comments Off on Hindi Love Shayari SMS

Dosti Shayari SMS

Dosti Shayari

Hum dosto ko jaan samjhate hai….
hum dosto ko humrah samjhate hai…
dost hame bewafa samjhe to kya huwa…
hum dosto ki parchaye banate hai…


Category: Uncategorized | Comments Off on Dosti Shayari SMS

Sad Love Shayari in Hindi

Dard Shayari

Mohabbat har Insan ko ajmati hai,
Kisi se ruth jati hai kisi pe muskurati hai,
Mohabat khel hi aisa hai,
Kisi ka kuch nahi jata aur kisi ki jaan hi chali jati hai…


Category: Uncategorized | Comments Off on Sad Love Shayari in Hindi

Bewafa Shayari SMS

Bewafa Shayari

Jane kya soch ke lehrein sahil se takrati hain
Aur phir se laut jati hain..
Samaj nahi ata ke woh kinaro se bewafai karti hain
Ya phir laut ke samandar se wafa nibhati hain…


Category: Uncategorized | Comments Off on Bewafa Shayari SMS

Hindi Shayari on Love

Shayari SMS

Kisi ke dil mein basna bura to nahi
Kisi ko dil mein basana khata to nahi
Hain ye zamane ki nazar me bura to kiay hua
Zamane wale bhi insan hai khuda to nahi..


Category: Uncategorized | Comments Off on Hindi Shayari on Love

Dosti Shayari SMS

Dosti Shayari

Rishton ki dori kamzor hoti hai,
Aankhon ki baatein dil ki chor hoti hain,
Khuda ne jab bhi poocha dosti ka matlab,
Hamari ungli aapki aur hoti hai…


Category: Uncategorized | Comments Off on Dosti Shayari SMS

Shayari for Teachers on Farewell

Shayari for Teachers

Le gaye aap is school ko us mukaam par,
garv se uthte hai hamare sar,
hum rahe na rahe ab kal,
yaad aayenge aap ke saath bitaye hue pal,
Teacher.. aapki zarurat rahengi hame har pal…


Category: Uncategorized | Comments Off on Shayari for Teachers on Farewell

Broken Heart Lines in Hindi

Sad Shayari

Mehfil main kuch to sunana padta hai,
Gham chupakar muskurana padta hai,
kabhi unke hum bhi the dost,
Aaj kal unhe yaad dilana padta hai…


Category: Uncategorized | Comments Off on Broken Heart Lines in Hindi

Dosti SMS for Mobile

Dosti Shayari

Ansu Bahe To Ehesas Hota Hai,
Dosti k Bina jiwan kitna Udas Hota Hai,
Umar Ho Apki Chand jitni lambi,
Aap jaisa Dost kaha Har kisi k Paas Hota Hai…


Category: Uncategorized | Comments Off on Dosti SMS for Mobile

Difference between semaphores and spinlocks

In the posts ” ” we were introduced to semaphores and spinlocks and how they can be used to protect the critical section. Though both are used for the same purpose, their working is completely different from each other. Here are the major differences between the two.

1) Spinlocks can only be used for mutual exclusion, that is it can allow only one process into the critical region at any given time.
In semaphores we can use it for either mutual exclusion or it can be used as counting semaphore to allow more than on process into the critical region.

2) In spinlocks a process waiting for lock will keep the processor busy by continuously polling for the lock.
In semaphores a process waiting for a semaphore will go into sleep to be woken up at a future time and then try for the lock again.

3) In spinlocks a process waiting for lock will instantly get access to critical region as the process will poll continuously fro the lock.
In semaphores the process waiting for a lock might not get into critical region as soon as the lock is free because the process would have gone to sleep and will enter the critical region only when it is waken up.

4) Spinlocks can have only two values LOCKED and UNLOCKED.
Semaphores if used as mutex will have value 1 or 0, but used as counting semaphore it can have different values.

5)Spinlocks are not very useful in uniprocessor systems as they will keep the processor busy while polling for the lock, thus disabling any other process from running.
Semaphores don’t keep the processor busy while waiting for the lock thus, they can be conveniently used in a uniprocessor system

6) It is recommended to disable interrupts while holding a spinlock.
Semaphores can he locked with interrupts enabled.

Category: Linux | Comments Off on Difference between semaphores and spinlocks