473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Testing Multi Threaded program on linux

Hello all,

Currently we are developing a multi threaded application in C on linux
platform. For our application we have designed a wrapper on pthread
library. Now I need some free testing tool/suite or technique to test
that application. i have found some testing tools for Java and C#.
But Still I don't get any tools for C on linux platform. Can anyone
give information/link about free testing tools or techniques which may
help me to test our application and find out Problems, for example:
race condition, dead lock etc that can be raised any time???

Thanks and regrads
Nasif
Sep 18 '08 #1
5 2631
In article <59**********************************@l33g2000pri. googlegroups.com>,
Nasif <na*******@gmail.comwrote:
>Hello all,

Currently we are developing a multi threaded application in C on linux
platform. For our application we have designed a wrapper on pthread
library. Now I need some free testing tool/suite or technique to test
that application. i have found some testing tools for Java and C#.
But Still I don't get any tools for C on linux platform. Can anyone
give information/link about free testing tools or techniques which may
help me to test our application and find out Problems, for example:
race condition, dead lock etc that can be raised any time???
I am about to destroy your thread (make you wish you'd never posted at
all), as well as demonstrate "the CLC effect". The point is that you
have posted to a number of groups and your post is just fine for most of
those groups. However, you have also posted to the oddly-named newsgroup
comp.lang.c (whose name suggests that it is about the C language, but it
is anything but). This newsgroup is populated by a bunch of nutcases,
who say things like:

Off topic. Not portable. Cant discuss it here. Blah, blah, blah.

--
Useful clc-related links:

http://en.wikipedia.org/wiki/Aspergers
http://en.wikipedia.org/wiki/Clique
http://en.wikipedia.org/wiki/C_programming_language

Sep 18 '08 #2
Nasif wrote:
>
Currently we are developing a multi threaded application in C on
linux platform. For our application we have designed a wrapper on
pthread library. Now I need some free testing tool/suite or
technique to test that application. i have found some testing
tools for Java and C#. But Still I don't get any tools for C on
linux platform. Can anyone give information/link about free
testing tools or techniques which may help me to test our
application and find out Problems, for example: race condition,
dead lock etc that can be raised any time???
Off topic on most of the newsgroups used. F'ups set to the one
where the question is topical.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Sep 18 '08 #3
This will be a problem. The best i found is Sun Studio on SPARC
Hardware and XCode 3 on Apple Systems.
Both are free and the unix layer seems to be portable enough.

For both you can purchase hardware cheap on Ebay. A dual core Blade
1000 goes for 150 US$ these days.

On Linux you might try Valgrind but it is more for single threaded
analysis like L2 cache use etc.

Maybe VTune but it's not free and i've not used it in the past.
Sep 23 '08 #4
sc***********@gmail.com wrote:
>
This will be a problem. The best i found is Sun Studio on SPARC
Hardware and XCode 3 on Apple Systems.
Both are free and the unix layer seems to be portable enough.

For both you can purchase hardware cheap on Ebay. A dual core
Blade 1000 goes for 150 US$ these days.

On Linux you might try Valgrind but it is more for single
threaded analysis like L2 cache use etc.

Maybe VTune but it's not free and i've not used it in the past.
Pointless lacking any quotation. Also off-topic on most of the
cross-posted threads. F'up set to a thread where it MAY be
topical.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Sep 23 '08 #5
On Sep 23, 5:36 am, scholz.lot...@gmail.com wrote:
This will be a problem. The best i found is Sun Studio on SPARC
Hardware and XCode 3 on Apple Systems.
Both are free and the unix layer seems to be portable enough.

For both you can purchase hardware cheap on Ebay. A dual core Blade
1000 goes for 150 US$ these days.

On Linux you might try Valgrind but it is more for single threaded
analysis like L2 cache use etc.

Maybe VTune but it's not free and i've not used it in the past.
Shameless plug time: another not-free tool is my own company's UndoDB
- http://undo-software.com/

It's not for testing per se - it's a reversible debugger. But when
you want to go from testing to fixing the bugs thrown up by your
testing (which let's face it, is the hard part) then UndoDB is
incredibly powerful. It works just like a normal debugger, except you
can step /backwards/. You can jump back to an arbitrary point in your
program's history, and jump forwards and back as much as you like. Or
step back line-by-line. It works with multithreaded programs just
fine. It's also scalable - typical slow-down while running in "record
mode" is about 2x or 2.5x.

Advert ends :)

Cheers,

Greg
Sep 23 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave | last post by:
Hi. I am new to theads and I wanted some advice on my client/server program on Linux. I want to create a CD database with this functionality. 1. Multiple client requests for the same CD...
9
by: Stu | last post by:
Hi, I have a web service that does database access and calculations However it keeps falling over becuase its not multi threaded and each call to it is not in its own space!! I dont want to use...
20
by: dotyet | last post by:
Hi Everyone, It would be a real big help if anyone can shed light on whether DB2 UDB 8.2 on Solaris will make optimum use of a Sun T2000 server. The server has 1 CPU with 8 cores and each core...
58
by: nw | last post by:
Hi, I have been asked to teach a short course on testing in C++. Until now I have used my own testing classes (which from what I've seen seem similar to the boost unit testing classes)....
30
by: Alf P. Steinbach | last post by:
I once suggested in that SomeOne Else(TM) should propose a string value class that accepted literals and char pointers and so on, with possible custom deleter, and in case of literal strings just...
1
by: indeevaram | last post by:
Hello All, In my new project, (in a multi-threaded environment using C++ under Linux), when a number of threads are making new database connections, the error message "Too many connections" is...
6
by: Nasif | last post by:
Hello all, Currently we are developing a multi threaded application in C on linux platform. For our application we have designed a wrapper on pthread library. Now I need some free testing...
14
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
As far as I know, the C Standard has no mention of multi-threaded programming; it has no mention of how to achieve multi-threaded programming, nor does it mention whether the language or its...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.