开发一个Windows操作系统, 究竟需要多少行代码呢

微软的Windows系统是伴随我们已久的老朋友了,大多数人都是一代一代Windows的用上来,老用户几乎都形成一个共识,就是微软的系统有一代会很好,也有一代会很糟糕,比如Windows XP、Windows 7就很受欢迎,而Windows 2000、Windows Vista就是一个悲伤的故事。那么,微软的Windows系统用了这么久,究竟它有多少行代码呢?


Microsoft Windows问世于1985年,起初仅仅是Microsoft-DOS模拟环境,后续的系统版本由于微软不断的更新升级,不但易用,也慢慢的成为家家户户人们最喜爱的操作系统。下面我们从代码行数、开发难度,参与人员的数量,开发的时间长度等角度来说说,一个windows系统有多复杂。

Windows XP大约40,000,000行代码。

Windows Vista 大约50,000,000行代码,算上修正掉的代码估计超过一亿行。内部版本超过上千个,每个版本都有所测试。为其做出贡献的正式工合约工临时工超过数万人。大概的工程量可能和胡夫金字塔相当。

Windows 7 大约50,000,000行代码。Windows 7开发的时候有23个小组,每个小组约40人,也就是将近1000人。这仅仅是Windows团队的人数,其余为其做出贡献的更是数不胜数。

几千万行代码的工作量是个什么概念?举个参照系吧,很多人在用的金山的WPS代码行数约有150万行,而金山软件公司重写这个级别的办公软件WPS,用了3年时间。

再比如微软在4年前的研发成本超过100亿美元,在开发Windows Vista的所花费的研发费用更是超过了恐怖的200亿美元。Linux内核开发根据人员投入的规模测算,也耗资数有十亿美元。

假如一个桌面级的操作系统代码规模在千万行数量级,如果加上配套软件,总规模应该超过一亿行,如果再加上一个完整的软件生态系统,那么总规模应该不少于十亿行。这还是成熟的系统,再加上调试精简前更多。再加上各个功能之间需要兼容性,可维护性,可管理性等这些随着代码的越来越多可推敲,需考虑的问题也会越来越多,是项技术难度非常大的工作!你觉得呢?

博文最后更新时间:


评论

  • Suzanne

    I merely wanted to provide you with a quick heads up! Other than that, fantastic site! https://soumissions-courtiers.com/10-conseils-pour-preparer-vos-jeunes-enfants-a-un-demenagement/

  • Merziuz

    aRE6Tl http://pills2sale.com/ viagra online

  • Houston

    Whereabouts are you from? <a href="http://diskes.karangasemkab.go.id/imiquimod-bula-gksc">aldara imiquimod price</a> Cesium-137, with a half-life of 30 years, was also some 15 times higher than it had been five days ago at 650 becquerels per liter. A much larger spike in radioactive cesium in early July in a different well eventually led to Tepco overturning months of denials and admitting that radioactive water had been leaking into the sea.

  • Ashton

    Where do you study? <a href="https://sicurvideo.it/celecoxib-celebrex-drug-study-ovoj">celebrex 200 mg tabletas</a> The company, whose name means “small rice,” hasn’t released details of its latest funding round, but the $10-billion valuation isn’t too demanding. Xiaomi aims to sell 20 million handsets in 2013, almost three times as many as last year. Assuming an average price of $250, that’s $5-billion of revenue. After applying the company’s net margin of roughly 10 per cent, the new valuation is a pretty un-racy 20 times earnings.

  • Bonser

    The United States <a href="https://www.isoflex.com.br/esomeprazole-20-mg-tablet-st91">omeprazole pronunciation uk</a> Some investors took last week's weaker-than-expected U.S.jobs report as an indication that the Fed was likely to holdsteady with its monetary stimulus program, though Monday'sservice sector data tempered that view somewhat.

  • Duncan

    An accountancy practice <a href="http://www.atozfruitsandveg.com/singulair-side-effects-eyes-rtwq">can u take singulair and allegra together</a> I was incredibly difficult to train with as I demanded a huge amount from people (as I did myself). Looking back, I probably didn&rsquo;t create an environment where people felt free to take a risk and try something new. Such an approach could have made them &ndash; and ultimately me &ndash; gain a significant improvement in performance.

发表评论

博客统计

访问量:3042489

博文总数:750 评论总数:320332

原创126 翻译20 转载604