Search the web
Sign In
New User? Sign Up
cheapthreads · cheap_threads
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
multithreaded paradigm   Message List  
Reply | Forward Message #15 of 89 |
GREETINGS
forgive me but I'm kinda new to multithreaded programming d=)

I'm just wondering how to implement a user interface in a
multithreaded programming environment or using cheap thread.

For example i have 2 threads. Thread A runs the user interface while
Thread B does other things. I mean how do i get the input from the
user through thread A since the two threads are switching controls.
I cant use scanf since it will wait for user input at the same time
suspending the execution of the other thread Thread B.

How can I run thread B on the background while thread A gets user
input?

Forgive me if my question is a bit trivial =)







Fri Sep 12, 2003 1:32 pm

blaze01211983
Offline Offline
Send Email Send Email

Forward
Message #15 of 89 |
Expand Messages Author Sort by Date

GREETINGS forgive me but I'm kinda new to multithreaded programming d=) I'm just wondering how to implement a user interface in a multithreaded programming...
xcelcior
blaze01211983
Offline Send Email
Sep 12, 2003
1:32 pm

You're asking about non-blocking IO, and the question is not at all trivial.   For many forms of multithreading, there's no problem.  One thread can perform...
Scott McKellar
jm407a
Offline Send Email
Sep 12, 2003
5:29 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help