9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
In solaris, orphan process is put to sleep mode and does not consume any CPU resources. In Linux, orphan process is kept in running state consuming all CPU and Ram resources. Is it the case? Is there a difference on how these operating systems will handle orphan processes?
The route cause of... (10 Replies)
Discussion started by: Belure Pooja B
10 Replies
2. Shell Programming and Scripting
Hi Folks,
please advise , I have logs generated on unix machine at location /ops/opt/aaa/bvg.log , now sometimes there come exception in these logs also, so I want to write such a script such that it should continuously monitor these logs and whenever any exception comes that is it try to find... (3 Replies)
Discussion started by: tuntun27272727
3 Replies
3. Programming
Hello All,
I have a question ....which I am totally confused about!
If I have a fxn foo in a program which returns a logical value. But it has a posssiblity to throw some exception.
Now my exception handler returns a value as a string stating why the exception occured.
But my... (1 Reply)
Discussion started by: mind@work
1 Replies
4. Shell Programming and Scripting
Sometimes when I try to use curl to upload to an ftp server, I get the message:
$curl -T file.wmv ftp.eu.filesonic.com --user user:password
curl: (8) Got a 421 ftp-server response when 220 was expected
How do I get the script to try again if I get the message curl: (8)? (2 Replies)
Discussion started by: locoroco
2 Replies
5. Programming
Hi Friend,
Could you please provide me with some tutorial for Advanced Exception handling in C++, mainly set_terminate() and set_unexpected() functions?
Please find the details below:
OS: Unix
Compiler: gcc.
Thanks. :)
Awesome001 (0 Replies)
Discussion started by: awesome001
0 Replies
6. Shell Programming and Scripting
Hi,
I have written a script to load csv files into a mysql database, however, i would like for the shell script to exit in the event of an error (missing file, load error etc.) - currently if an error is encountered the next statement is processed - This is how i am loading the csv scripts
... (5 Replies)
Discussion started by: bertpereira
5 Replies
7. Linux
hello friends,
I am given a project to handle the command not found exception.I am using RED HAT 9. Generally, when we press a wrong command in the terminal: example :-
" $cet " in place of " $cat ". Then we get this exception. But I need to give the output as the combinations that are possible... (5 Replies)
Discussion started by: nsharath
5 Replies
8. Shell Programming and Scripting
Hi all,
I am writing a set of scripts and some of these are nested within others. I want to be able to execute a single high-level script at the command-line, which in turn may invoke other scripts as required, and when a failure occurs in any of the nested scripts, I want to be able to track... (2 Replies)
Discussion started by: chaitu_inmage
2 Replies
9. UNIX for Advanced & Expert Users
Does exception handling exist in any UNIX enviornment? I develop on Windows MSVC++ land and need to port to UNIX. (1 Reply)
Discussion started by: RichardS
1 Replies
multithreading_support(3) Coin multithreading_support(3)
NAME
multithreading_support - Multithreading Support in Coin The support in Coin for using multiple threads in application programs and the Coin
library itself, consists of two main features:
o Coin provides platform-independent thread-handling abstraction classes. These are classes that the application programmer can freely use
in her application code to start new threads, control their execution, work with mutexes and do other tasks related to handling multiple
threads.
The classes in question are SbThread, SbMutex, SbStorage, SbBarrier, SbCondVar, SbFifo, SbThreadAutoLock, SbRWMutex, and SbTypedStorage.
See their respective documentation for the detailed information.
The classes fully hides the system-specific implementation, which is either done on top of native Win32 (if on Microsoft Windows), or over
POSIX threads (on UNIX and UNIX-like systems).
o The other aspect of our multi-threading support is that Coin can be specially configured so that rendering traversals of the scene graph
are done in a thread-safe manner. This means e.g. that it is possible to have Coin render the scene in parallel on multiple CPUs for
multiple rendering pipes, to better take advantage of such high-end systems (like CAVE environments, for instance).
Thread-safe render traversals are off by default, because there is a small overhead involved which would make rendering (very) slightly
slower on single-threaded invocations.
To get a Coin library built with thread-safe rendering, one must actively re-configure Coin and build a special, local version. For
configure-based builds (UNIX and UNIX-like systems, or with Cygwin on Microsoft Windows) this is done with the option '--enable-threadsafe'
to Autoconf configure. For how to change the configuration and re-build with Visual Studio, get in touch with us at 'coin-
support@coin3d.org'.
There are some restrictions and other issues which it is important to be aware of:
o We do not yet provide any support for binding the multi-threaded rendering support into the SoQt / SoWin / etc GUI bindings, and neither
do we provide bindings against any specific library that handles multi-pipe rendering. This means the application programmer will have to
possess some expertise, and put in some effort, to be able to utilize multi-pipe rendering with Coin.
o Rendering traversals is currently the only operation which we publicly support to be thread-safe. There are other aspects of Coin that we
know are thread-safe, like most other action traversals beside just rendering, but we make no guarantees in this regard.
o Be careful about using a separate thread for changing Coin structures versus what is used for the application's GUI event thread.
We are aware of at least issues with Qt (and thereby SoQt), where you should not modify the scene graph in any way in a thread separate
from the main Qt thread. This because it will trigger operations where Qt is not thread-safe.
Since:
Coin 2.0
Version 3.1.3 Wed May 23 2012 multithreading_support(3)