Wednesday, December 29, 2010

Difference Between Virtual and Cache memory

Nowadays memory seems to be almost infinite and nobody actually gets the “not enough memory” messages of yester-year. How did they accomplish that?
The answer to that is a very smart memory management procedure. By placing some parts that should be in memory inside your hard-disk they can extend the memory capacity of a computer way beyond what is installed; this is called virtual memory. So let’s say that your computer only has 1GB of memory and you launch a few programs whose total memory consumption is at around 1.5GB. Without virtual memory, you are not allowed to do that. But with virtual memory, the operating system assigns a portion of the hard-disk as a part of memory and keeps the data there. So in the above example let’s say that the virtual memory is also 1GB. 1GB actual memory + 1GB virtual memory = 2GB system memory. That way even though your memory is limited you can still use memory extensive applications.
There is a disadvantage to virtual memory though. Reading data from a hard disk is substantially slower than reading from memory. So the more information that is stored in your hard-disk the slower your system becomes making it seem sluggish.


Cache memory on the other hand doesn’t extend the amount of memory you have, it merely lessens the amount of time needed to access data. So that you can understand the concept easily, let’s say that the processor is a student doing a report. Whenever he needs data he goes to the bookshelf (the bookshelf being the memory, and the books are the data) ,that is called Cache memory.

SAP memory vs ABAP memory

ABAP (Advanced Business Application Programming) programs run on a SAP database. ABAP programs can utilize two types of memory, ABAP memory and SAP memory. The main difference between these two types of memory is their scope. ABAP memory is pretty limited and can only be accessed within one main internal session. Other programs running outside that session will not be able to read or write to that memory. On the other hand, SAP memory is pretty much like global memory and is accessible not only by programs that are running under the same main session but also across different main sessions.
The different scopes between the two lead to two different uses. The main use of ABAP memory is to make data accessible across multiple transactions within the same session. Although SAP memory is also capable of performing this function, it is reserved for its own purpose; making information available or transferring data across main session.

Summary:
  1. SAP memory is global and can be used to pass data across main sessions while ABAP memory is local and is uses to pass data across internal sessions
  2. GET PARAMETER and SET PARAMETER are used to write and read to SAP memory while IMPORT FROM MEMORY and EXPORT TO MEMORY are used for ABAP memory


Read more: Difference Between SAP memory and ABAP memory | Difference Between | SAP memory vs ABAP memory http://www.differencebetween.net/technology/software-technology/difference-between-sap-memory-and-abap-memory/#ixzz19ZPzN86a.

Saturday, December 4, 2010

Get-IP-address-all-computers-under-network

using System.Net;

string hostName = System.Net.Dns.GetHostName();

System.Net.IPHostEntry IpAddress = System.Net.Dns.GetHostEntry(hostName);

foreach(System.Net.IPAddress Ip in IpAddress.AddressList)
{
MessageBox.Show(Ip.ToString());
}   

Microsoft Certification terms.

 Microsoft Certified Professional (MCP),
Microsoft Certified IT Professional (MCITP),
Microsoft Certified Master(MCM),
Microsoft Certified architect (MCA)
Microsoft Certified Application Developer (MCAD),
Microsoft Certified Solution Developer (MCSD),
Microsoft Certified Technology Specialist (MCST),
Microsoft Certified Professional Developer (MCPD),
Microsoft Certified Systems Administrator (MCSA),
Microsoft Certified Database Administrator (MCDBA) ,
Microsoft Certified Desktop Support Technician(MCDST),
Microsoft Certified Application Specialist(MCAS)
Microsoft Certified Trainer(MCT),
Microsoft Certified Systems Engineer(MCSE),
Microsoft Office Specialist (MOS)

Thursday, December 2, 2010

Get System Processor Id for some validations

Firstly Make sure that you have added system.Management namespace and assembly.

public static string GetProcessorID()
{

string sProcessorID = "";

string sQuery = "SELECT ProcessorId FROM Win32_Processor";

ManagementObjectSearcher oManagementObjectSearcher = new ManagementObjectSearcher(sQuery);

ManagementObjectCollection oCollection = oManagementObjectSearcher.Get();
foreach (ManagementObject oManagementObject in oCollection)

{

sProcessorID = (string)oManagementObject["ProcessorId"];

}
return (sProcessorID);

}

Get list of Windows Services

ServiceController[] services = ServiceController.GetServices();