Monday, 15 July 2019

Java Program to Convert Uppercase Character to Lowercase Character

/*Aims to convert Uppercase Character to Lowercase Character */

import java.util.Scanner;

public class JavaProgram
{
    public static void main(String[] input)
    {
        char ch;
        int temp;
        Scanner scan = new Scanner(System.in);
        
        System.out.print("Enter a Character in Uppercase : ");
        ch = scan.next().charAt(0);
  
        temp = (int) ch;
        if((temp>=97)&&(temp<=122)) 
               temp = temp + 32;// The difference between the ASCII Codes of Lower case and Uppercase is 32
        ch = (char) temp;
  
        System.out.print("Equivalent Character in Lowercase = " + ch);
    }
}

 

Scalable Computing Over Internet

The above Video contains different types of Computing Techniques, Differences between HPC and HTC, Multithreading Concepts, Differences between CPU and GPU, etc.,

Tuesday, 25 June 2019

Parallelism in Cloud Computing


Degrees of Parallelism
The number of parallel execution servers associated with a single operation is known as the degree of parallelism(DOP).
We can apply parallelism only when the problem broken into discrete pieces to be solved simultaneously.
Types of parallelism
1.      Data Level Parallelism
It is parallelization across multiple processors in parallel computing environments.
For eg., if we want to sum of array elements in sequential execution, the time taken by the process is n*Ta . If we want to execute the same job as a data parallel job on 4 processors the time taken would reduce to (n/4)*Ta+merging overhead time units.
2.      Task Level Parallelism
It covers the execution of computer programs across multiple processors on same or multiple machines.  For eg., task parallelism would be an application creating thread for doing parallel processing where each thread is responsible for performing a different operation.
                                              

3.      Instruction Level Parallelism
It is a measure of how many of the instructions in a computer program can be executed simultaneously.
For eg.,  a=b+c, d=e+f, x=a+b
Out of these three instructions, two instructions executed individually. The third one depends on the result of first and second operations.
4.      Bit Level Parallelism
It is a form of parallel computing based on increasing processor word size. Increasing the word size reduces the number of instructions the processor must execute in order to perform an operation on variables whose sizes are greater than the length of the word.