By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,107 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,107 IT Pros & Developers. It's quick & easy.

C Unix calling system() from multithreaded process

P: n/a
hi,

one of my friends was saying it's not a good idea to do this.

certainly on my Solaris box man system makes a similar statement.

could anyone elaborate in practicality how risky this is?

i'm currently calling the system() function from within my 64 bit c
app..

i've had to do this because my program has to work with code for which
there are only 32bit libraries - hence my system() call to the
external 32 bit command.

is there a better way of doing this?
Nov 14 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 23 Nov 2004 19:25:34 -0800, ha*********@hotmail.com (talisman)
wrote in comp.lang.c:
hi,

one of my friends was saying it's not a good idea to do this.
To do what? Some newsreaders do not display the subject line when
displaying the message bodies. Always include your topic in the body
as well.

In any case, the C language does not support threads or processes, so
there is no language issue involved here.
certainly on my Solaris box man system makes a similar statement.
If your compiler documentation suggests that you should not do this,
then you probably shouldn't. If you want to know why, contact Sun
technical support or ask in a Solaris programming group. I seem to
remember that there is one.
could anyone elaborate in practicality how risky this is?
Not anyone here, no, it is off-topic.
i'm currently calling the system() function from within my 64 bit c
app..

i've had to do this because my program has to work with code for which
there are only 32bit libraries - hence my system() call to the
external 32 bit command.
There is no such thing as "64 bit C" or "32 bit libraries" in the C
language. These are implementation details of your compiler and
platform, not anything to do with the language.
is there a better way of doing this?


Yes, consulting the sources I suggested above.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 14 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.