问题标签 [operating-system]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
6 回答
5091 浏览

memory - Ubuntu 32 bit maximum address space

Jeff covered this a while back on his blog in terms of 32 bit Vista.

Does the same 32 bit 4 GB memory cap that applies in 32 bit Vista apply to 32 bit Ubuntu? Are there any 32 bit operating systems that have creatively solved this problem?

0 投票
8 回答
35988 浏览

windows - Name of the process with highest cpu usage

I have a Samurize config that shows a CPU usage graph similar to Task manager.

How do I also display the name of the process with the current highest CPU usage percentage?

I would like this to be updated, at most, once per second. Samurize can call a command line tool and display it's output on screen, so this could also be an option.


Further clarification:

I have investigated writing my own command line c# .NET application to enumerate the array returned from System.Diagnostics.Process.GetProcesses(), but the Process instance class does not seem to include a CPU percentage property.

Can I calculate this in some way?

0 投票
12 回答
699 浏览

operating-system - 您希望操作系统具有哪些功能?

比方说,在一个一切皆有可能的完美世界里。一般来说,您希望您的操作系统、IDE、编译器或计算机具有哪些功能。

当然,每个人都希望减少启动时间和超级 faaaaaast 处理器,还有什么?我个人真的很想有人类语言识别。

这个问题可能听起来有点傻,但如果你没有远距离目标,你也不知道现在该去哪里。

0 投票
18 回答
44305 浏览

java - 如何让机器保持清醒?

我有一个用 Java 编写的服务器式软件,可以在 Windows 和 OS X 上运行。(它不是在服务器上运行,而只是在普通用户的 PC 上运行 - 类似于 torrent 客户端。)我希望软件发出信号到操作系统以在机器处于活动状态时保持机器唤醒(防止其进入睡眠模式)。

当然,我不希望有一个跨平台的解决方案,但我希望我的应用程序可以生成一些非常小的 C 程序/脚本,以通知操作系统保持清醒。

有任何想法吗?

0 投票
8 回答
2963 浏览

operating-system - Web 程序员、客户端或服务器首选的操作系统是什么?

您更喜欢在哪个操作系统上编程?客户端或服务器

虽然有一个学派认为,如果您(主要是)进行 Web 编程(或其他基于服务器的代码),您应该为您的开发机器使用服务器操作系统,因为它更接近您的应用程序将运行的环境。

更新:我应该补充一下,这确实是针对 Windows 人群的

0 投票
4 回答
830 浏览

operating-system - 有孩子的PID吗?

我目前正在上操作系统课,我的老师花了一半的课时谈论 PID。她提到,正如许多人所知,进程知道他们父母的 ID。

我的问题是这样的:

进程的 PCB 是否知道其子进程的 ID?如果是这样,获得它的方法是什么?

0 投票
36 回答
627479 浏览

operating-system - 二进制信号量和互斥量之间的区别

二进制信号量和互斥量之间有什么区别还是它们本质上是一样的?

0 投票
6 回答
11073 浏览

optimization - 进程与线程

如何决定是使用线程还是在应用程序中完全创建单独的进程来实现并行性。

0 投票
3 回答
635 浏览

java - Java 是否对底层操作系统以外的文件名施加任何进一步的限制?

Java 是否强加了它自己的任何额外限制。Windows(直到 Vista)不允许包含名称

我知道如何验证名称(正则表达式)。

我需要验证用户输入的文件名。

我的应用程序不需要在任何其他平台上运行,当然,我更愿意独立于平台!

0 投票
4 回答
1792 浏览

java - 如何从 Swing 应用程序中检测到 PC 正在关闭?

表现良好的 Windows 程序需要允许用户在关闭 PC 时保存他们的工作。

如何让我的应用检测到关闭事件?如果用户选择“取消”,任何解决方案都应允许用户中止关机。

正常的 Swing 窗口关闭钩子不起作用,添加关闭钩子也不起作用。

在测试中,不会调用 WindowListener 的方法(windowClosing、windowClosed 等)。

我接受的答案需要使用平台特定代码(JNI 注册 WM_QUERYENDSESSION )。这不是 Swing 上的错误吗?

http://forums.sun.com/thread.jspa?threadID=481807&messageID=2246870