Single tasking?

R

Rick

Hi,

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

Rick
 
J

Jack Klein

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
 
D

Dan Pop

In said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,102
Messages
2,570,645
Members
47,247
Latest member
GabrieleL2

Latest Threads

Top