Azure的WorkerRole的优势与开始一个新的线程 [英] Advantages of Azure WorkerRole vs. starting a new thread

查看:168
本文介绍了Azure的WorkerRole的优势与开始一个新的线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以总结创建的Azure WokerRole与简单地开始一个新的线程的优势是什么?

Can someone please summarize the advantages of creating an Azure WokerRole vs. simply starting a new thread?

推荐答案

通过启动创建线程你会共享资源,当你有所有的内存和可用的CPU该实例的大小与一个新的工作角色实例一个角色该实例的大小。

By starting a new worker role instance you have all of the memory and CPU available to that instance size vs. when creating threads you'd be sharing the resources of one role for that instance size.

我会说,这还取决于你正在处理什么。另外,我认为线程或并行处理不仅使得当你使用一个中等实例和最多,你有2个或更多的内核感。

I would say that it also depends on what you're processing. Also, I think that threading or any parallel processing only makes sense when you're using a Medium instance and up where you have 2 or more cores.

这篇关于Azure的WorkerRole的优势与开始一个新的线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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