请救几个LINUX命令?
1,查看某一个进程的信息?
2,查看某一个进程下有哪些线程?
麻烦您描述尽可能地详细点啊,我是LINUX菜鸟,
分数也不多了,
1 ps aux|grep postgres
2 pstree|grep postgres
[root@RHEL4 dev]# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 15:52 ? 00:00:00 init [3]
root 2 1 0 15:52 ? 00:00:00 [migration/0]
root 3 1 0 15:52 ? 00:00:00 [ksoftirqd/0]
root 4 1 0 15:52 ? 00:00:00 [events/0]
root 5 4 0 15:52 ? 00:00:00 [khelper]
root 6 4 0 15:52 ? 00:00:00 [kacpid]
root 17 4 0 15:52 ? 00:00:00 [kblockd/0]
root 35 4 0 15:52 ? 00:00:00 [pdflush]
root 36 4 0 15:52 ?&nb
相关问答:
写了个测试程序如下
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
由于我才刚刚接触socket编程,自己写了一个简单程序,但就是在运行的时候出现段错误,无法解决,现在我把源代码贴出来,请各位大虾指正一下!谢谢!
#include<stdio.h>
#include<stdlib.h>
#include& ......
如题,谢谢
Linux是开源的,你搜索Linux源程序目录就可以找到shell命令time的实现代码。
kernel/time.c
你的头像很不错呀
使用函数time为进程提供当前的时间
#include<time.h>
time_t time(time ......
rt
使用I/O多路转接,select/poll/epoll。
首先,你所说的事件是什么?是signal还是condition
如果是signal,因为线程有别于进程,所以可以这样做。在线程内设置信号屏蔽位,将期望处理的信号位放
开,其余的bl ......