Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-01-2013, 04:44 AM
|
#1
|
LQ Newbie
Registered: Sep 2009
Posts: 22
Rep:
|
Simple concurrent driver for Linux,
Hi all,
For my research, I need a very simple driver, maybe even not a very realistic one, in which we have to deal with concurrency issues. The final aim is to analyze this code running on ARM platform.
First I chose the Linux USB driver as I thought we can have concurrency, because several devices can connect to the system with multiple requests running, but it turns out that the code of USB is quit complicated for my purpose.
I was wondering if anyone can suggest me a simple driver?
It can be any arbitrary driver, even not for Linux, just what I need is that it must be simple and we have concurrency inside it.
Many thanks in advance,
|
|
|
10-01-2013, 06:51 AM
|
#2
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,976
|
Member Response
Hi,
Concurrency is dependent on hardware limitations for the CPU and available RAM. I would suggest looking at TCP since concurrent operations are a must. Simple concurrent operations for the TCP stack would be a good place to start. Out of the box, 65536 is the default so this will not be that simple!
Operations are handled by the concurrent interrupt scheduler for the stack operations.
You could look at: concurrent software for example of simple operations.
Hope this helps.
|
|
2 members found this post helpful.
|
10-02-2013, 12:41 AM
|
#3
|
LQ Newbie
Registered: Oct 2013
Posts: 3
Rep: 
|
Thanks onebuck,
We exactly need a software with both interrupts and threads, like what you mentioned in your link as well, but finally I need to work on its ARM code.
Do you mean the whole implementation of TCP/IP of linux? If I can work on a simple part of it, then it will be fine too. I was wondering if you could suggest me a small part of its implementation that is simple to work on.
Thanks,
|
|
|
10-02-2013, 06:59 AM
|
#4
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,976
|
Member Response
Hi,
If you look at the example that I linked you will find several simple types for concurrent handling. Simple!
I was talking generally about TCP but the operation would be the same for Linux. You could look at: Issues In Concurrent Server Design on Linux Systems - Part I to provide a good scope for concurrent.
Hope this helps.
|
|
2 members found this post helpful.
|
10-02-2013, 02:26 PM
|
#5
|
LQ Newbie
Registered: Oct 2013
Posts: 3
Rep: 
|
Hi,
Thanks,
Yes, but actually what I need is the "source code" of this kind of software
that's why I started to look at Linux, as it is a real-life example and open source.
|
|
|
10-02-2013, 06:37 PM
|
#6
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,976
|
Member Response
|
|
|
10-03-2013, 03:29 PM
|
#7
|
LQ Newbie
Registered: Oct 2013
Posts: 3
Rep: 
|
Thanks onebuck!
|
|
|
All times are GMT -5. The time now is 09:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|