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

📄 slog_tasklabel.java

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 JAVA
字号:
import java.io.*;public class SLOG_tasklabel implements Serializable{    public short       node;    public byte        cpu;    public int         thread;    public SLOG_tasklabel()    {        node    = SLOG_Const.INVALID_short;        cpu     = SLOG_Const.INVALID_byte;        thread  = SLOG_Const.INVALID_int;    }    public SLOG_tasklabel( short   in_node_id,                           byte    in_cpu_id,                           int     in_thread_id )    {        node   = in_node_id;        cpu    = in_cpu_id;        thread = in_thread_id;    }    public SLOG_tasklabel( DataInputStream data_istm )    throws IOException    {        this.ReadFromDataStream( data_istm );    }    public void ReadFromDataStream( DataInputStream data_istm )    throws IOException    {        node       = data_istm.readShort();        cpu        = data_istm.readByte();        thread     = data_istm.readInt();    }    public final int NbytesInFile()    {//         return( 2 + 1 + 4 );        return( 7 );    }    public String toString()    {        StringBuffer representation = new StringBuffer();        representation.append( "( " + node + " " + cpu + " " + thread + " )" );        return( representation.toString() );    }}

⌨️ 快捷键说明

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