Finally, if your kernel thread shares data with a bottom half, then you can use another variant of the spinlock.
最后,如果内核线程通过bottomhalf方式共享数据,那么可以使用自旋锁的另一个变体。
You will also have to write a kernel thread that will generate the various interrupts.
您还需要编写一个内核线程,它负责生成各种中断。
The spinlock is needed here, because the kernel thread will be running independently and will access the global structure.
此处的确需要自旋锁,因为内核线程是独立运行的,而且要访问这个全局结构。
These threads are runnable, Windows takes a lot of time during kernel thread context switches, and not much time is spent on running the thread.
而这些线程都是可运行的,Windows内核花费大量的时间在进行线程的上下文切换,并没有多少时间花在线程运行上。
This enables a 1:1 threading model without limitations on the number of threads being created (since a new kernel thread is created for every user thread).
这样就可以实现一个不受创建的线程数限制的1:1线程模型(因为每一个新的内核线程都是为一个用户线程而创建)。
You have to set the appropriate fields and then pass the same to the special ioctl that would in turn either raise the interrupts or signal the kernel thread to raise the interrupts.
需要设置适当的域,然后将其传递给这个特殊的ioctl,它会触发中断,或者向内核线程发送信号来触发中断。
System makes use of kernel thread to drive the encrypting card in the environment of 100M.
在百兆环境下利用核心线程驱动加密卡。
Designed a programming model using kernel thread in touch screen driver, which replaced the old state machine model.
设计了触摸屏驱动中使用内核线程的编程模型,代替了原来的状态机模型。
A kernel thread is a single sequential flow of control.
内核线程是单个顺序控制流。
This requires a context switch to the kernel thread to handle the task of moving data to and from disk.
这要求上下文切换到内核线程,以处理将数据移动到磁盘以及从磁盘移出数据的任务。
Softirqs were used for time-critical processing (software interrupts) in the kernel thread context.
软中断用于在内核线程上下文中处理时间要求严格的处理过程(软件中断)。
By effectively making use of the kernel debugger, you can reduce the work of the kernel thread that was described earlier.
通过有效地利用内核调试器,我们可以减少前面介绍的内核线程的工作。
This kernel thread should be destroyed in the close of the device driver in this pseudo code.
在下面的伪代码中,这个内核线程应该在设备驱动程序的close函数中进行销毁。
Use the kernel API kernel_thread to register this kernel thread in this pseudo code.
在下面的伪代码中,使用了内核api kernel _ thread来注册这个内核线程。
The kernel thread and the application thread will handshake with each other.
内核线程和应用程序线程需要相互进行握手。
This strategy requires the kernel thread to raise the interrupt so that the device's ISR will get called.
这种策略需要一个内核线程来触发中断,这样就可以调用该设备的ISR 了。
Note: the kernel thread will read the global structure, and interrupts will be generated based on the elements in the global structure.
注:内核线程会读取这个全局结构,并会根据这个全局结构中的元素来生成中断。