加快启动时加载服务的时间 [英] Speed up load time of service at boot

查看:142
本文介绍了加快启动时加载服务的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用C#构建了Windows服务,该服务可以快速启动并按预期运行.

但是,我注意到,在启动Windows之前,通常需要30秒到一分钟的时间才能启动Windows.

我想知道是否有什么时间可以改善这个时间或确定我的服务的优先级,以便它可以更快地启动?

I have built a Windows Service in C# which starts quickly and runs as expected.

However, I have noticed that it will usually take 30 seconds to a minute before windows will get round to starting my service at boot up.

I was wondering if there is anyway to improve this time or prioritize my service so it is started sooner?

推荐答案

您可以做到这一点,但总的来说不是一个好主意.基本上,每个服务都属于一个服务组.可以通过双击并编辑HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceGroupOrder中的List值来编辑这些服务组的顺序.就像我说的那样,这不是一个好主意-如果您弄错了,您可能最终会安装Windows安装.
While you can do this, generally it''s not a good idea. Basically, each service belongs to a service group. The order of these service groups can be edited by double clicking and editing the List value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceGroupOrder. As I say, this is not a great idea - if you get it wrong, you will probably end up hosing your Windows install.


这篇关于加快启动时加载服务的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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