"jiing" <ji********@gmail.com> wrote:
Since we know that doSomewastingTimeThing( ) will spend us a lot of
time.
We want to do the other things till doSomeWastingTimeThing get the
return value (foundOrNot).
When doSomeWastingTimeThing return the answer, we begin to do something
about the returned answer.
Now, my question is:
1. How can I do it in C Language?
You can't; not in C alone. If you are on a Unixoid, or somewhere else
where POSIX-like threads are available, perhaps comp.unix.programmer can
give you an answer; if not, your system does probably provide threading,
but as an extension to ISO C, and you'll need to ask in a newsgroup that
discusses programming for your compiler and/or OS.
Richard