Unlike most other computer languages, java provides built-in support for multithreaded programming. A multithreaded program contains two or more parts that can concurrently. Each part of such a program is called a thread, and each thread defines a separate path of execution. Thus, multithreading is a specialized form of multitasking. You are certainly acquainted with multithreading, because it is supported by virtually all modern operating systems. However, there are two distinct types of multitasking – process based and thread based. It is important to understand the difference between the two. Process based multitasking is the more familiar form. A process is, in essence, a program that is executing. Thus, process-based multitasking is the feature that allows your computer to run two or more programs concurrently. For example process-based multitasking enables you to run the java compiler at the same time that you are using a text editor. In process based multitasking a program is the smallest unit of code that can be dispatched by the scheduler.
In a thread-based multitasking environment, the thread is the smallest unit of dispatch able code. This means a single program can perform two or more tasks simultaneously. For instance, a text editor can format text at the same time that it is printing, as long as these two actions are being performed by two separate threads. Thus process based multitasking deals with the “big picture” and thread based multitasking handles the details.
Multitasking threading requires less overhead than multitasking processes. Processes are heavy weight task that requires their own separate address space. Interprocess communication is expensive and limited. Context process from one switching to another is also costly. Threads, on other hand are light weight. They share the same address space and cooperatively share the same heavy weight process. Inter thread communication is inexpensive and context switching from one thread to next is low cost. While java program make use of process based multitasking environments, process based multitasking is not under the control of java. However, multithread tasking is.
Multithreading enables you to write very efficient program that make maximum use of CPU, idle time can be kept minimum. This is especially important to interactive, networked environment in which java operates, because idle time is common. For example, the transmission rate of a data over a network is much slower over the rate that which computer can process it. Even the local file system resources are read and written as much slower pace than they can be processed by the CPU. And of course user input is slower the computer. In traditional single threaded environment your computer has to wait for each tasks to finish before it can proceeds to the next one-even though the CPU is sitting in the idle most of the time. Multithreading lets you to gain access you to the idle time and lets you to make best use of it.
If you have programming for operating systems such as windows 98 and windows 2000, then you are already familiar with multithreading programming. However, the fact that java manages threads makes multitasking especially convenient, because many of details handles by you.
HI friends, today I am going to inform you about how to install and uninstall application. Though you can do a lot with the programs and features that are included in Windows, but you will probably want to install other programs.
How you add a program depends on where the installation files for the program are located. Generally programs are installed from a CD or DVD, from the Internet or from a network.
To install a program from a CD or DVD
Insert the disc into your computer and then follow the instructions on your screens. If you are prompted for an administrator password or confirmation, type the password or provide confirmation. Many programs installed from Cd's or DVD's will attempt to launch an install wizard for the program automatically. In these cases, the AutoPlay dialog box will appear and you can choose to run the wizard. For more information, see Auto play frequently asked questions. If a program doesn't begin to install, check the information that came with the program. This information will likely provide instructions for installing the program manually. If you cannot access the program's information, you can also browse through the disc and open the program's setup file, usually called Setup.exe or install.exe.
Uninstall or change program
You can uninstall a program from your computer, if you no longer use it or if you want to free up space on your hard disk. You can use programs and features to uninstall programs or to change the program's configuration by adding or removing certain options. Open programs and features by clicking the start button, clicking control panel, clicking Add & remove programs and then clicking change or remove. That's it and you are done.
Tips -- Always make sure that your computer meets the requirement of the program that you want to install and go through the read me instructions carefully. Finally, after installing the program if your computer prompts you to reboot go for it.
The most popular scripting language is Java script language on internet which works on almost all browsers like internet explorer, Google chrome, Firefox, opera and safari. For learning JavaScript we need to know html or xhtml technology. Java script helps in making the html webpage interactive. It is a scripting language so the programs of it are executed on server side. Java script is a open source like html and php. It’s not license reserved. Java and java script are not at all equal.
The html programs can be read and written by java script. Java script inserts dynamic script into the html webpage to interact. JavaScript is used in validating data, detecting the browsers. To insert the java script into html program, script tag is used. The JavaScript will write between script tag only.
Syntax of script tag:
-----
Statements
……
The script tag will be written in the body and head of the html program.
……
Statements
……
The browser which not supports the JavaScript, that browser displays the program as page content. If there is
element in the program then the JavaScript program should be below of the
element.
We need to write java script program in such a way when a user clicks the button then a event should occur in such case the script should be written inside the function. Actually events will be used with functions. We can place the script in head and body at the same time.
External java script should not contain tag. The set of statement to be executed at browser is known as java script. Java script is a case sensitive. To command the browser JavaScript language is used.
Document .write (“text”);
The above statement is used to print the text.
JavaScript comments:
Comments are used for the readability of the code.
There are two types:
- Single line comment
- Multi line comment
- Single line comment:
The comment line in single line.
Syntax:
//statement
- Multi line comment
The comment line for block of statement that is multi line
/*
Statements
*/
The variables in the JavaScript:
Variable in java script are case sensitive.
Variables should begin with letter or underscore.
The variable which is declared within the function is known as local variables. The local variables will be accessed within the function. The local variables will be destroyed when the function gets excited.
The variables which are declared outside the function is known as global variables. These variables can be access throughout the webpage. Global variables get excited when the page gets closed. The variables without using var then it are Global variable. The if a value assigned to a variable without declaration then it is automatically known global variable.
Operators:
To assign the value we use =
To add values we use +
To multiply we use *
To divide we use /
To modulus we use %
For increment ++
For decrement –-
+operator can be used to add string or text values.
The comparison operators:
== equal to
!= not equal to
- Greater than
< Less than
>= greater than and equal to
<=less than and equal to
Logical operators:
&& - And
|| - or
! - Not
Conditional operator:
Variable based on condition.
Syntax:
Variable name= (conditional operator)? value1:value2;
Conditional statement:
Conditional statement where we often write code.
The conditional statements are:
1. If statement
2. If else statement
3. If else if else if statement
4. Switch statement
1. If else statement syntax:
If(condition)
{
Code or statement
}
2. If else statement syntax:
If(condition)
{
Code the condtion is true
}
Else
{
Code the condtion is false
}
3. If else if else if statement syntax:
If(condition1)
{
Code to execute
}
Else if(condition2)
{
Code to execute
}
Else
{
Code execute condition 1 and condition2 are not true
}
4. Switch statement syntax:
Switch (a)
{
Case 1:
Code 1execute
Break;
Case 2:
Code2 execute
Break;
Default:
Code execute if a is different from case1 and case 2
}
There are three kinds of popup Boxes:
- Alert box
- Confirm box
- Prompt box
1.Alert box:
If the information comes through the user when the alert box is popup, so that the ok will be clicked by the user.
Syntax:
Alert (“text”);
2. Confirm box:
The information to accept or verify by the user, confirm box is used. When the confirm box appears there will be 2 options for the user that is ok and cancel. To return the box to true, the user should click ok and to return the box to false, the user should click cancel.
Syntax:
Confirm (“text”);
3. Prompt box:
To input a value into the page before entering, then the prompt box is used. when the prompt box pops then the using will be having 2 option that is ok and cancel to proceed after entering input value. If ok is clicked then the box returns to input value and if cancel is clicked then the box returns to null value.
Syntax:
Prompt (“text”, “default value”);
JavaScript functions:
A function gets executed by event or call by function.
We can call function from anywhere in the page. We can define a function in head and body tags.
Syntax:
Function function name (var1, var2………..varn)
Return statement:
Return statement is used to specify which is going to be returned the function. The function which returns a value should use return statement.
Java script loops:
Loops are executed with block of code or statements in specified times and when the condition becomes true.
There are 2 loops in JavaScript:
1. For loop and 2. While loop
1. For loop:
This loop is used to execute the block of code in specified number of times. To run the script in specified number times for loop is used.
Syntax:
For (variable = star value; variable<=end value; variable=variable increment)
{
Code
}
2. While loop:
The loop that executed until the specified condition is true.
Syntax;
While (condition)
{
Code
}
Do while:
The loop executes once and executes until the specified condition is true.
Syntax:
Do
{
Code
}
While (variable<=end value)
Break statement:
The break statement will break the loop and executes next following code after the loop.
Continue statement:
The continue statement will continue the loop and executes next value.
For in statement:
The for in statement loop through the code in the properties of the object.
Syntax:
For(variable in object)
{
Code
}
The code in the form in statement will execute once for each property.
Events:
The actions that can be detected by the JavaScript are known as events.
By using JavaScript we can create dynamic WebPages.
Every element on the webpage will have an event that can trigger JavaScript.
Events are used with the combination of functions. Events cannot be executed before the function occurs.
Onload and on unload events:
When the user enters and leaves the webpage then the events on load and onunload will be triggered.
Onload is used to check the browser, browser version and loading property of the webpage which the user is using.
Onload and onunload events are used to set the cookieswhile leaving the webpages.
Onfocus, on blur and on change events:
These events are used with the combination of validation in the fields of form.
Syntax:
On submit:
Before submitting, this event will be used for validating all form fields.
Syntax:
Onmouseover:
When a user mouse over an html element then onmouseover is used to trigger the function.
Try catch statement:
To test a block of code to test we use try catch statement.
Syntax:
Try
{
Code
}
Catch (error)
{
Error code
}
The try and catch keywords should be in lowercase letters. If we use uppercase letters then they will be errors in JavaScript.
The throw statement:
The throw statement will be sued with try and catch to create exception.
Syntax:
throw(exception)
The exception may be object, Boolean, integer, string.
Here throw should be in lowercase. If it is uppercase then it will be error.
Types of testing and test methodologies
1.Unit technologies:
It is also known as component test. It is done by the developer each and every small piece of code is tested.
2.Integration testing:
All these units are put together for testing. It is also done by the developer.
3.Smoke testing:
It is also known as dry test. Running the software to ensure that it is free from errors.
4.Black box testing:
It is used to check external functionality of the application. Here we will be giving the input and we will check whether the required output or not.
5.White box test:
It is also known as structured testing or glass box testing. We have to check for the internal process.
We have to check 1) conditions 2) loops 3) Database operations 4) memory leakages.
6.Grey Box testing:
It is a combination of blue box and white box testing.
7.Cosmetic testing:
It is for checking the appearance of the application. Here the appearance in the sense checking for the font style, size, color combinations, spellings and alignment.
8. Gorilla Test:
This is also known as monkey test. Running the software by performing illegal operations.
9.Stress test:
We have to run the application number of times to find whether the applications able to with stand the load or not. Here we are putting load in this test. In this we will test on an application.
10.Performance test:
We have to find out how much time is taking to perform a particular process.
11.Load test:
It depends on system configuration, operating system, data base. We have to find out how much load can a server take when multiple users access the same application present on the server at the same time.
12. Security test:
We have to check for the securities.
13.Recovery test:
There should be an option in the application for recovering the data from the back up.
14.Usability test:
This test is user-friendly. User-friendly means to find out whether the end user is comfortable while using the software. It is used for checking:
- Proper messages
- Keyword board operations are provided
- Navigation is proper
- Tool tip text
Bubble help or balloon help whether these applications are provided or not will check.
15.Compatibility test:
Running on various operating system that is window 98, 2000, Unix. Machines / browsers (internet explorer)
16.Retesting:
To find out whether the reported bugs have been fixed or not.
17. Regression test:
We have to ensure that the modifications are giving rise to any other side effects. We will check inside the application.
18.Sanity test:
We have to see that operating system, database connectivity and network connections are not getting disturbed.
19.System testing:
The entire application is tested for the functionality, performance, security, recovery, compatibility and usability.
20.Installation test:
Load the application in some other system and find whether it is getting load properly or not.
21. Uninstallation test:
Unload the software and check whether all the components are getting removed or not.
22. Alpha test:
We will be running the software from the developers place and giving demo to the clients from the developers place and then getting a feedback from the clients.
23.Beta test:
We will be giving the software to the clients place and asking the check to them and then they use the software and then we will get some feedback. I this testing the developers put some licenses after that time period it will expire.
24.User application test:
End user is used to test the software to find out whether all the requirements have been full filled or not.
End user will check for:
Software testing
Documentation
Training
More Articles …
Page 8 of 46