⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpuinformationmonitor.java

📁 分布式计算平台P2HP-1的源代码;P2HP-1是基于P2P的高性能计算平台
💻 JAVA
字号:
package cn.edu.hust.cgcl.biogrid.dispatcher;

//import hpc.application.SubProgram;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class CpuInformationMonitor
{
    public native String displayCpuUsage();

    static
    {
    	//Runtime runTime = Runtime.getRuntime();
		//runTime.load(SubProgram.programPath+"\\alignment.dll"); 
        System.loadLibrary("cpumonitor");
    }

    public CpuInformationMonitor()
    {
    }

    public synchronized String getCpuUsage()
    {
    String u=new CpuInformationMonitor().displayCpuUsage();
    return u;
    }


    /*public static void main(String[] args)
    {
        String u=new CpuInformationMonitor().displayCpuUsage();
        System.out.println(u);
    }*/

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -