国产高清精品免费区-男女一进一出抽搐免费视频-中日韩一二三级黄色永久视频-日韩精品人妻一区二区免费视频-日本久久视频在线观看-99热这里只有精品88热-亚洲韩国黄色最新短视频一区-日韩伦理在线观看免费全集-国产av一区二区三区天堂

spinlock

spinlock

 英

  • 網(wǎng)絡(luò)自旋鎖;結(jié)構(gòu)鎖;自旋塊

例句

Finally, if your kernel thread shares data with a bottom half, then you can use another variant of the spinlock.

最后如果內(nèi)核線程通過bottomhalf方式共享數(shù)據(jù)那么可以使用另一個變體

First you create a new spinlock through a simple declaration.

首先通過一個簡單聲明創(chuàng)建一個

In this example, an array is created of spinlock_t with a size of LOCK_COUNT.

這個示例,spinlock_t創(chuàng)建一個大小LOCK_COUNT數(shù)組

This version of the spinlock disables soft interrupts on the local CPU.

這種禁用本地CPU中斷

The spin_unlock_irqrestore function releases the spinlock and restores the interrupts (via the flags argument).

spin_unlock_irqrestore函數(shù)釋放并且通過flags參數(shù)恢復(fù)中斷

The task in the session is waiting for a spinlock to become free.

會話任務(wù)正在等待調(diào)節(jié)變?yōu)?/c>可用

Make sure this copying happens inside the critical section by holding a spinlock.

確保這個拷貝一個具有臨界區(qū)發(fā)生

The spin_lock_irqsave function acquires the spinlock and disables interrupts on the local processor (in the SMP case).

spin_lock_irqsave函數(shù)需要并且本地處理器SMP情形禁用中斷

The spinlock is needed here, because the kernel thread will be running independently and will access the global structure.

此處的確需要因為內(nèi)核線程獨立運行而且訪問這個全局結(jié)構(gòu)

Yes folks, there is a pseudo-spin lock and call to Threading. Sleep in there.

是的各位讀者注意這里存在一個循環(huán)(pseudo-spinlock),調(diào)用Threading.Sleep。

I've used a combination of mutexes and spinlocks to keep things synchronized.

使用互斥spinlock組合方案保證同步

Now that you have a spinlock defined, there are a number of locking variants that you can use.

定義之后可以使用大量鎖定變量

There are also four ways to release a spinlock; the one you use must correspond to the function you used to take the lock

以下種方法可以用來釋放一個必須使用鎖定函數(shù)相對應(yīng)一個

There are actually four functions that can lock a spinlock

下面四個可以鎖定一個函數(shù)