want to write a kernel module which creates 10 processes to access common varaible
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
thanks....but I used Fork(),its givin an error (actually a warning: implicit declaration of function ‘fork’)....i used clone() its givin d same error....I want to use do_fork() but am not gettin what parameters to use in that.....or please suggest some other function.....
@pixellany: i am pursuing bachelors degree in computer science . I need this in order to check the working of semaphores and spinlocks. I am using Ubuntu 7.10. Now can u suggest some way to solve this problem please. ......n also i had written kernel modules for linked list and character device driver and block device driver...
Last edited by hrushi_kute; 09-27-2008 at 01:18 PM.
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
hrushi_kute, maybe the intention of this assignment is to learn you how to create multiple processes and still use shared memory. There are a few techniques for learning that.
Not only that, but those are very well documented and from the fundamentals of today's multitasking operating systems.
Since you keep asking the obvious, and apparently you did either not read the entire book, or stopped at the 'fork' chapter. I wonder once you graduated for this course how you will proceed in your professional life if you can't even put effort in finding out how to write multiple processes using shared memory.
Try to google with the keywords you gave us, and start to read.