LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 10-01-2013, 04:44 AM   #1
hamedn
LQ Newbie
 
Registered: Sep 2009
Posts: 22

Rep: Reputation: 0
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,
 
Old 10-01-2013, 06:51 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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.
Old 10-02-2013, 12:41 AM   #3
narsisa2
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Rep: Reputation: Disabled
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,
 
Old 10-02-2013, 06:59 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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.
Old 10-02-2013, 02:26 PM   #5
narsisa2
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 10-02-2013, 06:37 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

Issues In Concurrent Server Design on Linux Systems - Part I to provide a good scope for concurrent, shows samples.
 
Old 10-03-2013, 03:29 PM   #7
narsisa2
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Rep: Reputation: Disabled
Thanks onebuck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux numa aware concurrent programming aminabs Linux - Kernel 2 08-20-2010 03:53 AM
Writing Simple Device Driver In Linux i_love_linux Linux - Kernel 6 09-04-2007 07:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration