Posts

Showing posts from August, 2015

To find Subnet Mask and Network ID for given IP Address > Java Program

Computer Networks To find Subnet Mask and Network ID for given IP Address > Java Program import java.io.*; import java.net.InetAddress; public class subnet {       public static void main(String[] args) throws IOException {               System.out.println("ENTER IP:");         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));         String ip = br.readLine();         String checkclass = ip.substring(0, 3);

To use fork() to get the Parent and Child Process ID > C Program

Operating Systems Program using fork() to get the Parent and Child Process ID #include<stdio.h> #include<string.h> #include<fcntl.h> #include<sys/stat.h> #include<sys/types.h> int main() { int pid, p1, c;

I/O System Calls > C Program

Operating Systems I/O System Calls > C Programs Program 1 #include<stdio.h> #include<stdlib.h> #include<sys/types.h> #include<sys/stat.h> #include<unistd.h> #include<errno.h> int main(int argc,char*argv[]) { pid_t pid; pid=fork();

Linux Networking > Terminal Commands 1

Operating Systems Linux Networking > Terminal Commands  [root@localhost ~]# mkdir PRATHAMESH [root@localhost ~]# cd PRATHAMESH [root@localhost PRATHAMESH]# cd .. [root@localhost ~]# vi LMN [root@localhost ~]# cat LMN This is the new file to demonstrate the vi command. we are operating Linux Red Hat.

To find Sum and Average of Block of n-Bytes > Assembly Language

Microprocessor To find Sum and Average of Block of n-Bytes > Assembly Language ASSUME CS:CODE , DS:DATA DATA SEGMENT

Windows and Linux Networking > Terminal Commands 2

Computer Networks Windows and Linux Networking > Terminal Commands  Windows Commands Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\admin>ipconfig Windows IP Configuration Ethernet adapter VMware Network Adapter VMnet8:         Connection-specific DNS Suffix  . :         IP Address. . . . . . . . . . . . : 192.168.88.1         Subnet Mask . . . . . . . . . . . : 255.255.255.0         Default Gateway . . . . . . . . . :

To Find Average of two Bytes > Assembly Language

Microprocessor To Find Average of two Bytes > Assembly Language ASSUME DS:DATA, CS:CODE DATA SEGMENT