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

Single tasking?

P: n/a
Hi,

Would it be right to say that C is a single-tasking environment?
pThreads and other variants aren't really "C"? Thanks

Rick

Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Mon, 24 Nov 2003 15:57:03 +1100, Rick <rrquick@nospam-com> wrote in
comp.lang.c:
Hi,

Would it be right to say that C is a single-tasking environment?
No, not really. C is a "non-tasking" environment.
pThreads and other variants aren't really "C"? Thanks

Rick


C does not support or even define the concept of "tasks", not even
single-tasking. The C language defines a virtual machine in which it
is the only thing in existence.

--
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++ ftp://snurse-l.org/pub/acllc-c++/faq
Nov 13 '05 #2

P: n/a
In <3f********@clarion.carno.net.au> Rick <rrquick@nospam-com> writes:
Would it be right to say that C is a single-tasking environment?
The C abstract machine supports a single program with a single thread
of execution (plus asynchronous invocations of signal handlers).
pThreads and other variants aren't really "C"? Thanks


You can't create a new thread in a C program without invoking undefined
behaviour. This doesn't mean that a multithreaded C program is not a C
program, merely that it is not the kind of portable C programs we discuss
in this newsgroup.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.