zoukankan      html  css  js  c++  java
  • Process

     1 using System;
     2 using System.Collections.Generic;
     3 using System.Text;
     4 using System.Diagnostics;
     5 namespace ChineseLunisolarCalend
     6 {
     7     class Program
     8     {
     9         public static void Main(string[] args)
    10         {
    11             try
    12             {
    13                 ShowProcessInfo();
    14             }
    15             catch (Exception e)
    16             {
    17                 Console.WriteLine(e.Message);
    18             }
    19             finally
    20             {
    21 
    22             }
    23 
    24             Console.ReadLine();
    25         }
    26 
    27         public static void ShowProcessInfo()
    28         {
    29             Process[] processes = Process.GetProcesses();
    30             System.Console.WriteLine("进程ID 进程名字 优先级 启动时间");
    31             foreach (Process p in processes)
    32             {
    33                 Console.WriteLine(String.Format("{0} {1} {2} {3}", p.Id, p.ProcessName, p.BasePriority, p.StartTime));
    34             }
    35         }
    36     }
    37 }
  • 相关阅读:
    spark-RDD缓存,checkpoint机制,有向无环图,stage
    spark广播变量
    k8s部署spark
    spark简单安装
    搭建一套高可用的hadoop集群
    JavaScript实现无限级递归树的示例代码
    $.ajax 调用 Asp.Net Core Razor Page 后台代码
    2020蓝桥杯省赛B组第二轮 H 字串分值
    取整函数
    c++按空格分割句子
  • 原文地址:https://www.cnblogs.com/tonybinlj/p/1328812.html
Copyright © 2011-2022 走看看