Hello.
I want to create functions that will work independently of kmain, what is needed for this and how is it implemented?
How can I create a separate thread for some function?
Re: How can I create a separate thread for some function?
That's a massive question. I think perhaps you need to do a little reading and research.
Here's a starting point: https://wiki.osdev.org/Multitasking_Systems
But I would recommend that you read a book or two about operating system design.
Here's a starting point: https://wiki.osdev.org/Multitasking_Systems
But I would recommend that you read a book or two about operating system design.