spinlock

  • 网络自旋锁;结构锁;自旋块

spinlockspinlock

spinlock

自旋锁

自旋锁(Spinlock)是一种 Linux 内核中广泛运用的底层同步机制。自旋锁是一种工作于多处理器环境的特殊的锁,在单处理环境 …

结构锁

Linux内核中工作队列的操作 - 技术文档 -... ... // 定时器 struct timer_list timer; // 结构锁 spinlock_t lock; ...

自旋块

这是通过用已有的对称多处理(SMP)自旋块spinlock)来指示内核里关键的非抢先任务区域而实现的。内核的所有其他区域 …

螺旋锁

因为缓冲区管理程序是共享资源,对它的并发访问是由“螺旋锁”(spinlock)机制来控制。在多对称式多处理器结构中,要取得最 …

盘旋锁

盘旋锁(spinlock)block – 将行程放置等待伫列中wakeup – 将行程从伫列中提出并放入就绪伫列投影片样版行程同步李绍群learry…

执行绪同步锁定

定谳 English, 翻译, 例句,... ... 协定 protocol; 执行绪同步锁定 spinlock 定 to fix;to decide;to set;to determine;to order ...

1
Finally, if your kernel thread shares data with a bottom half, then you can use another variant of the spinlock. 最后,如果内核线程通过bottomhalf方式共享数据,那么可以使用自旋锁的另一个变体。
2
First you create a new spinlock through a simple declaration. 首先通过一个简单的声明创建一个新的自旋锁。
3
In this example, an array is created of spinlock_t with a size of LOCK_COUNT. 在这个示例中,spinlock_t创建一个大小为LOCK_COUNT的数组。
4
This version of the spinlock disables soft interrupts on the local CPU. 这种自旋锁禁用了本地CPU上的软中断。
5
The spin_unlock_irqrestore function releases the spinlock and restores the interrupts (via the flags argument). spin_unlock_irqrestore函数释放自旋锁,并且(通过flags参数)恢复中断。
6
The task in the session is waiting for a spinlock to become free. 会话中的任务正在等待调节锁变为可用。
7
Make sure this copying happens inside the critical section by holding a spinlock. 确保这个拷贝是在一个具有自旋锁的临界区中发生的。
8
The spin_lock_irqsave function acquires the spinlock and disables interrupts on the local processor (in the SMP case). spin_lock_irqsave函数需要自旋锁,并且在本地处理器(在SMP情形中)上禁用中断。
9
The spinlock is needed here, because the kernel thread will be running independently and will access the global structure. 此处的确需要自旋锁,因为内核线程是独立运行的,而且要访问这个全局结构。
10
Yes folks, there is a pseudo-spin lock and call to Threading. Sleep in there. 是的,各位读者请注意,这里存在一个伪自循环锁(pseudo-spinlock),并调用了Threading.Sleep。