I am following this [code](https://codereview.stackexchange.com/questions/83632/minimal-webserver-in-c) of an C++ http server. One of the requirement is concurrency. That seems to be taken care of by the following chunk of code:

```
if(true) {
    if(pthread_create(&thread, 0, handle_request, pcliefd) < 0) {
            perror("pthread_create()");
        } 
    } else {
        handle_request(pcliefd);
    }

```

I then come across a simpler code in this [article](https://medium.com/from-the-scratch/http-server-what-do-you-need-to-know-to-build-a-simple-http-server-from-scratch-d1ef8945e4fa). `pthread` is not used here. The response is handle by a `write` nested inside `while(1)`. I suppose this simpler code does not meet the concurrency requirement? Anyways, what is the point of using thread to handle concurrency if the response is so simple? Is there something bigger behind this requirement?