确定哪个过程最旧,哪个过程最新。 [英] Determining which process is oldest, and which is newest.

查看:66
本文介绍了确定哪个过程最旧,哪个过程最新。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我的BBS(Daydream BBS)编写一个前端,我希望能够确定哪个程序是最新的,哪个是最老的。

任何人都知道我是怎么做的吗?对不起,我没有代码可以分享。



我尝试了什么:



我不知道该尝试什么..但是,我正在用C编程语言编程。

解决方案

我自己没试过,但这有帮助: c - Linux内核中进程的年龄 - 堆栈溢出 [ ^ ]?


检查进程在系统中运行的时间如何? 如何检查进程运行的时间? - Unix& Linux Stack Exchange [ ^ ]



然后检查哪个具有最大值,哪个具有最小值。 : - )

I'm trying to write a front end for my BBS (Daydream BBS), and I'd like to be able to determine which process of a program is the newest, and which is the oldest.
Anyone know how I go about doing this? I'm sorry, I have no code to share.

What I have tried:

I'm not sure what to try.. But, i'm programming in the C programming language.

解决方案

Not tried it myself, but does this help:c - Age of a process in the linux kernel - Stack Overflow[^]?


How about checking how long the process has been running in the system? How to check how long a process has been running? - Unix & Linux Stack Exchange[^]

Then just check which has the maximum value and which has the smallest value. :-)


这篇关于确定哪个过程最旧,哪个过程最新。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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