Skip to content

Chapter20 Web Server code problem #800

@dade68

Description

@dade68

书的最后一章构建多线程服务器代码,测试发现浏览器第一连接发起请求,TcpListener会认为收到两个请求,发出两个消息,会有两个线程收到消息开始工作,只不过第二个因为没有实际的请求会阻塞到job那里,这时候在用浏览器发起一次请求,阻塞的那个线程才会实际开始工作,这是为什么啊?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions