CodePudding user response:
This is you write a program, or you are a pure users? If you write applications, may need to get this function as a separate thread to realize, in the main thread receives function request, throwing the function to the appropriate child thread, his idle for a variety of other processing, processing threads are to be given appropriate tip and schedule information. Needed, of course, must have the reentrant mutex mechanism, if it is purely a user, this may be the feeling, this dialog doesn't know can be retrieved by a general program and close it,CodePudding user response:
Is needed, thank youCodePudding user response:
This is a question of program design, should consider to optimize the SQL query, why such a long time, is a network problem or bad database design, etc. Or increase the connection timeout time value; Should give the user some hints when waiting for the other, if can't do anything for such a long time, who will be impatient,