Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
swarup19-Feb-08 11:08
swarup19-Feb-08 11:08 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
led mike19-Feb-08 11:31
led mike19-Feb-08 11:31 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
swarup19-Feb-08 12:20
swarup19-Feb-08 12:20 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
led mike19-Feb-08 12:24
led mike19-Feb-08 12:24 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
David Crow19-Feb-08 17:04
David Crow19-Feb-08 17:04 
GeneralRe: Single Processor Multithreaded Application!!!!!!! Does it Help????????????????? Pin
Waldermort19-Feb-08 20:09
Waldermort19-Feb-08 20:09 
QuestionHow to make a line of bank customers with Queue Pin
apejman19-Feb-08 7:11
apejman19-Feb-08 7:11 
AnswerRe: How to make a line of bank customers with Queue Pin
Nathan Holt at EMOM19-Feb-08 8:51
Nathan Holt at EMOM19-Feb-08 8:51 
apejman wrote:
I'm trying to make Multiple Tellers, at this time my program assumes the bank has only one teller/counter. I want to modify the program so that it can handle multiple tellers, so that the customers in line will move to any available teller. For example, "Chewbacca steps up to counter #2" or "Vader has left counter #4."
but I have no idea how I can do that:
right now my program works, but I dont know how to add multiple tellers.


I would create an object to represent the set of tellers. Your IsCounterEmpty variable would be replaced by AreAllCountersFull, and AreAllCountersEmpty propertys. When checking for a customer finishing service, you would either loop over the counters in your main function, or provide a member of the teller set that does the looping and removing. When adding a customer, you the teller set could provide a method that would assign a customer to the first available teller.

Nathan
GeneralDialog with an activex control on it, living in a dll Pin
pragmaticDreamer19-Feb-08 5:55
pragmaticDreamer19-Feb-08 5:55 
General[Solved] VC6 and AMD Dual Core CPU problem [modified] Pin
followait19-Feb-08 5:30
followait19-Feb-08 5:30 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maximilien19-Feb-08 6:48
Maximilien19-Feb-08 6:48 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 15:01
followait19-Feb-08 15:01 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maximilien19-Feb-08 15:13
Maximilien19-Feb-08 15:13 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 15:43
followait19-Feb-08 15:43 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maxwell Chen19-Feb-08 17:25
Maxwell Chen19-Feb-08 17:25 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 17:38
followait19-Feb-08 17:38 
QuestionRe: VC6 and AMD Dual Core CPU problem [modified] Pin
Maxwell Chen19-Feb-08 17:56
Maxwell Chen19-Feb-08 17:56 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 23:08
followait19-Feb-08 23:08 
QuestionRe: VC6 and AMD Dual Core CPU problem Pin
David Crow19-Feb-08 17:06
David Crow19-Feb-08 17:06 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 17:36
followait19-Feb-08 17:36 
QuestionBest Code Signing Certificate? Pin
Stick^19-Feb-08 4:27
Stick^19-Feb-08 4:27 
GeneralRe: Best Code Signing Certificate? Pin
Peter Weyzen19-Feb-08 8:55
Peter Weyzen19-Feb-08 8:55 
GeneralRe: Best Code Signing Certificate? Pin
Mark Salsbery19-Feb-08 9:54
Mark Salsbery19-Feb-08 9:54 
GeneralRe: Best Code Signing Certificate? Pin
Chris Losinger19-Feb-08 10:02
professionalChris Losinger19-Feb-08 10:02 
GeneralRe: Best Code Signing Certificate? Pin
James R. Twine21-Feb-08 6:54
James R. Twine21-Feb-08 6:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.