Re: linux kernel threads

2000-10-19 Thread Jeff V. Merkey
Here's some sample code on how to do this. You use a macro called "kernel_thread" and in the thread you start, you have to do soe munging of current-> Jeff int nwfs_asynch_io_process(void *id) { register int i = (int)id; current->session = 1; current->pgrp = 1; sprintf(curre

linux kernel threads

2000-10-19 Thread Sourav Ghosh
Hello, Can anyone tell me how kernel threads (threads in the kernel space) works in linux? In other words, how can I schedule them like normal user-level threads? It seems to me that are NOT schedulable like user-level threads/processes in general since they are not pre-emptible at all. Is it ri