Link to home
Start Free TrialLog in
Avatar of she1
she1

asked on

can we say C language support multi-threading?

as i know the java support multi-threading, the C programming can use the fork to create a new process, can we say that C language support the multi-threading?
Avatar of Axter
Axter
Flag of United States of America image

Hi she1,
> >as i know the java support multi-threading, the C programming can use
> >the fork to create a new process, can we say that C language support
> >the multi-threading?

The language itself does not support mult-threading, but specific implementations and extensions to the language does support multi-thread.
For example, POSIX functions are an extension to the language, which allows C programs to support multi-threading.

However, the C-language standard, has nothing to say about multi-threading.

Cheers!
Hi she1,

>C programming can use the fork to create a new process,
fork() creates a new process ... A process is fundamentally different from a thread ... Child process does not share its address space with the parent while all threads do!!! ... This ability to create a different process should not be confused with ability to create threads

>can we say that C language support the multi-threading?
No ... C language does not support multi-threading .... However there are several libraries which provide multi-threading capabilities, but none of them is a part of ANSI C standard.

Cheers!
sunnycoder
ASKER CERTIFIED SOLUTION
Avatar of Narendra Kumar S S
Narendra Kumar S S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of she1
she1

ASKER

thanks for help, they are all helpful