简体   繁体   English

确定系统架构

[英]Determine system architecture

What methods of what class in sytem offer information over whether my current system is 32 or 64 bits ? 系统中哪些类提供有关当前系统是32位还是64位的信息的方法是什么? I'd like to determine the memory delivered once an object is saved on the system, for example, 4KB each for my current Intel DualCore 32 bit XP OS 我想确定一旦对象保存在系统上后传送的内存,例如,对于我当前的Intel DualCore 32位XP OS,每个4KB

You can use Environment.Is64BitOperatingSystem to determine your system architecture, but it's unclear what you mean by "the memory delivered once an object is saved on the system". 您可以使用Environment.Is64BitOperatingSystem来确定您的系统体系结构,但不清楚“对象保存在系统上后传送的内存”是什么意思。

If you're talking about when data is saved on your hard drive, then what you're referring to is the block size of your hard drive (incidentally, 4096B or 4K, as you describe is the default block size for Windows NTFS volumes). 如果您正在讨论何时将数据保存在硬盘驱动器上,那么您所指的是硬盘的块大小 (顺便提一下,4096B或4K,正如您所描述的那样是Windows NTFS卷的默认块大小) 。 If this is the case, then that is not related to your processor in any way; 如果是这种情况,那么这与您的处理器无关; that's a formatting option for a particular partition on a hard drive. 这是硬盘驱动器上特定分区的格式化选项。 I am not aware of a .NET mechanism for checking that. 我不知道用于检查它的.NET机制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM