Web服务多个请求 [英] Web Service Multiple Requests

查看:88
本文介绍了Web服务多个请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Web服务是否能够处理多个请求?
如果有1000个人正在从他们的系统登录并向一个Web服务触发查询,结果是否有可能被覆盖?
如果是,我们该怎么办?

is web services are capable of handling multiple requests?
if 1000 peoples are logging in from their systems and firing query to one web service is it possible that results will get overridden??
if yes what can we do to tackle it?

推荐答案

他们不会混在一起.相反,我会担心我的Web服务是否真的可以处理这种负载.

每个Web请求都在其自己的线程上运行. Windows管理线程调度,以便为每个线程分配CPU时间. Windows无法安排执行线程的数量超过可运行它们的核心数量.如果您有两个核心,则可以同时运行多少个线程.
They won''t be mingled. Instead, I would worry if my webservice can really handle that kind of load.

Each web request runs on its own thread. Windows manages the thread scheduling such that each thread is given CPU time. Windows cannot schedule more threads for execution than the number of cores available to run them. If you have two cores, then that is how many threads can run simultaneously.


这篇关于Web服务多个请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆