in reply to Re: Problem with ithreads
in thread Problem with ithreads
Your english is perfectly understandable--and a lot better than my Russian :)
There are three problems with trying to help you:
Ithreads are relatively expensive to start and run and using more than 10 in any application is self-defeating. The time spent swapping between many threads negates most if not all of the benefits of using them.
Using iThreads effectively, requires a different way of approaching the problem from either:
Most of the documentation available for threading is not applicable or relevant for iThreading, and even that documentation available directly relating to iThreading is sadly lacking in depth and practical "How to..." advice.
I've been trying to build up a body of practical examples that might form the basis of better documentation for a while, but the main problem is that all my experiments and programs are only applicable to Win32. Even when I have supplied example code to people to try on non-win32 platforms, I have never recieved any feedback as to whether it even works on their system. That makes drawing conclusions regarding the generality of the techniques I have developed almost impossible.
Unless you are going to use the results of the thread processing in some way that makes it beneficial to share those results--ie. something more than just logging them--then you are almost certainly better off using forking to achieve concurrency--at least on a non-Win32 platform(where fork is implemented using threads).
To summarise: Post your original code; and/or a full description of the problem you are trying to solve. I will then have a go at advising you on how best to tackle the problem with iThreads--or why iThreads are not applicable and advise what alternatives you might consider.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem with ithreads
by 2NetFly (Initiate) on Dec 30, 2004 at 10:15 UTC | |
by BrowserUk (Patriarch) on Dec 30, 2004 at 11:28 UTC | |
by 2NetFly (Initiate) on Dec 30, 2004 at 14:15 UTC |