ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » C# MQ client multi theaded application -logic help.

Post new topic  Reply to topic
 C# MQ client multi theaded application -logic help. « View previous topic :: View next topic » 
Author Message
tony
PostPosted: Fri Nov 19, 2004 2:50 pm    Post subject: C# MQ client multi theaded application -logic help. Reply with quote

Newbie

Joined: 21 Oct 2004
Posts: 4
Location: MN

I have the multi threaded application where one thread is getting the records from the queue. I use C# and everything is working OK, except
I need to use the do-while loop to constantly retrieve the records . And at this time when we have records in the queue and application retrives the records, CPU goes to 100% and stays there untill queue is empty. The previous app used the loop and in C++ we did not have this behaivor.
Any ideas how to improve or change the logic , so I would not need to use loop?
I use
mqGetMsgOpts.Options= MQC.MQGMO_WAIT + MQC.MQGMO_FAIL_IF_QUIESCING+MQC.MQGMO_SYNCPOINT;
mqGetMsgOpts.WaitInterval = 3000; // 3 second limit for waiting

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » C# MQ client multi theaded application -logic help.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.