How to run independent functions on the mfc server

Asked 2 years ago, Updated 2 years ago, 66 views

Hi, how are you?

The mfc server is currently conducting socket communication

When you load db through the db lookup function installed in the server,

When a large amount of db is loaded, the process itself is loaded.

Socket communication is delayed or stopped.

So in the program, socket communication goes independently

I think we can solve this problem if the function proceeds independently when we call up db.

I think you can use the thread in that way, but I don't know the thread well I don't know how to apply it.

I wonder how it is most effective to apply it. (If there is any other way besides thread, please advise.)

mfc thread server tcp socket

2022-09-21 23:20

1 Answers

First of all, there are books for parallel processing with c++.

The topic of multi-thread is a very difficult one. If you don't know the thread and you look for the application of some kind of equation, it's like you're going to do calculus without knowing the four-way operation.

First, please learn the basics with the books below.

http://www.kyobobook.co.kr/product/detailViewKor.laf?barcode=9788956744513

http://www.yes24.co.kr/24/goods/16775266


2022-09-21 23:20

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.