Tuesday, 29 April 2014

Java program for Border Gateway Protocol(BGP):

package bgp;
import java.util.*;
public class rout
{
    public static void main(String[] args)
    {
     int i,j,k;
     int a[][]=new int[10][10];
     int b[][]=new int[10][10];
     Scanner z=new Scanner(System.in);
     System.out.print("Enter the number of nodes :");
     int n=z.nextInt();
     for(i=0;i<n;i++)
     {
         for(j=0;j<n;j++)
         {
             System.out.println("Enter the distance between the host"+(i+1)+"-"+(j+1));
             a[i][j]=z.nextInt();
         }
     System.out.println("\nThe matrix is:");
     }
     for(i=0;i<n;i++)
     {
         for(j=0;j<n;j++)
            
         {
             System.out.print(a[i][j]+"\t");
         }
         System.out.println();
     }
     for(k=0;k<n;k++)
     {
         for(i=0;i<n;i++)
         {
             for(j=0;j<n;j++)
             {
                 if(a[i][j]>a[i][k]+a[k][j])
                 {
                     a[i][j]=a[i][k]+a[k][j];
                 } 
             }
            
          }
     }
     for(i=0;i<n;i++)
     {
         for(j=0;j<n;j++)
         {
             b[i][j]=a[i][j];
             if(i==j)
             {
                 b[i][j]=0;
               
             }
         }
     }
     System.out.println("\nThe output matrix is:");
     for(i=0;i<n;i++)
     {
         for(j=0;j<n;j++)
         {
             System.out.print(b[i][j]+"\t");
         }
         System.out.println("\n");
     }
     }

}

Embedded System portions for Anna University:


IT2354 EMBEDDED SYSTEMS L T P C
 3 0 0 3

UNIT I EMBEDDED COMPUTING 9
Challenges of Embedded Systems – Embedded system design process. Embedded
processors – 8051 Microcontroller, ARM processor – Architecture, Instruction sets and
programming.

UNIT II MEMORY AND INPUT / OUTPUT MANAGEMENT 9
Programming Input and Output – Memory system mechanisms – Memory and I/O
devices and interfacing – Interrupts handling.

UNIT III PROCESSES AND OPERATING SYSTEMS 9
Multiple tasks and processes – Context switching – Scheduling policies – Interprocess
communication mechanisms – Performance issues.

UNIT IV EMBEDDED SOFTWARE 9
Programming embedded systems in assembly and C – Meeting real time constraints –
Multi-state systems and function sequences. Embedded software development tools –
Emulators and debuggers.

UNIT V EMBEDDED SYSTEM DEVELOPMENT 9
Design issues and techniques – Case studies – Complete design of example embedded
systems.