| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help needed learning threads
I'm trying to learn how threads work, but I learn beast by example. So I was hoping that someone could post a couple of simple (at least I hope they're simple) code samples that I could run and trace through how they work.
What I think I need is: 2 threads running at the same time writing different charaters to the screen. and 2 threads - 1 reading characters from the keyboard and into a buffer, and the other reading the characters from the buffer an printing the to the screen. and any other examples that you may think might assist me. All assistance will be greatly appreciated. All a |
|
#2
|
|||
|
|||
|
Have you done a google search for this information. There's loads of sites out there with tutorials on how this kind of thing works. Rather than trying to get someone to write something new have a look at some of those and then come to us with specific questions about things you don't understand.
-KM- |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Help needed learning threads |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|