Thursday, May 24, 2007

get milliseconds time

Q; how to get milliseconds time
A:
ON linux/unix/etc
You may try the "gettimeofday" function. It reports the time down to microsecond level. The function is included via "".

#include
long milliseconds;
struct timeval currenttime;
gettimeofday(¤ttime, NULL),
milliseconds = (currenttime.tv_sec)*1000+(currenttime.tv_usec)/1000;



ON WINDOWS
Code: ( text )
#include "windows.h"

FILETIME now;

GetSystemTimeAsFileTime(&now);

or if you want it split in to hours etc
Code: ( text )
#include "windows.h"

SYSTEMTIME now;

GetSystemTime(&now);

Labels:


Tuesday, May 22, 2007

RPC Programming~

1. What are remote procedure calls? Simply put, they are the high-level communications paradigm used in
the operating system. RPC presumes the existence of low-level networking mechanisms (such as TCP/IP
and UDP/IP), and upon them it implements a logical client to server communications system designed
specifically for the support of network applications. With RPC, the client makes a procedure call to send a
data packet to the server. When the packet arrives, the server calls a dispatch routine, performs whatever
service is requested, sends back the reply, and the procedure call returns to the client.
2.

I am writing some rpc code . I have a question how should I to implement the rpc server as a multhread programe.

And the lock is so strange ,

System V IPC semphoare.

Labels:


Monday, May 21, 2007

History of C++

Get from http://www.cplusplus.com/info/history.html

During the 60s, while computers were still in an early stage of development, many new programming languages appeared. Among them, ALGOL 60, was developed as an alternative to FORTRAN but taking from it some concepts of structured programming which would later inspire most procedural languages, such as CPL and its succesors (like C++). ALGOL 68 also influenced directly in the development of data types in C. Nevertheless ALGOL was an unspecific language and its abstraction made it little practical to solve most commercial tasks.

In 1963 the CPL (Combined Programming language) appeared with the idea of being more specific for concrete programming tasks of that time than ALGOL or FORTRAN. Nevertheless this same specificity made it a big language and, therefore, difficult to learn and implement.

In 1967, Martin Richards developed the BCPL (Basic Combined Programming Language), that signified a simplification of CPL but kept the most important features the language offered. Although it continued being an abstract and somewhat large language.

In 1970, Ken Thompson, immersed in the development of UNIX at Bell Labs, created the B language. It was a port of BCPL for a specific machine and system (DEC PDP-7 and UNIX), and was adapted to his particular taste and necessities. The final result was an even greater simplification of CPL, although dependent on the system. It had great limitations like it did not compile to executable code but threaded-code, which generates slower code in execution, and therefore was inadequate for the development of an operating system. Reason why from 1971, Denis Ritchie, from the Bell Labs team, began the development of a B compiler which, among other things, was able to generate executable code directly. This "New B", finally called C, introduced in addition, some other new concepts to the language like data types (char).

In 1973, Denis Ritchie, had developed the bases of C. The inclusion of types, its handling, as well as the improvement of arrays and pointers, along with later demonstrated capacity of portability without becoming a high-level language, contributed to the expansion of the C language. It was established with the book "The C Programming Language" by Brian Kernighan and Denis Ritchie, known as the White Book, and that served as de facto standard until the publication of formal ANSI standard (ANSI X3J11 committee) in 1989.

In 1980, Bjarne Stroustrup, from Bell labs, began the development of the C++ language, that would receive formally this name at the end of 1983, when its first manual was going to be published. In October 1985, the first commercial release of the language appeared as well as the first edition of the book "The C++ Programming Language" by Bjarne Stroustrup.

During the 80s the C++ language was being refined until it became a language with its own personality. All that with very few losses of compatibility with the code with C, and without resigning to its most important characteristics. In fact, the ANSI standard for the C language published in 1989 took good part of the contributions of C++ to structured programming.

From 1990 on, ANSI committee X3J16 began the development of a specific standard for C++. In the period elapsed until the publication of the standard in 1998, C++ lived a great expansion in its use and today is the preferred language to develop professional applications on all platforms

Labels:


Tuesday, May 15, 2007

IPStor

IPStor is an award-winning comprehensive suite of enterprise class storage services, as well as an integrated platform for both SAN and NAS – all under one centralized management interface across multi-vendor and multi-platform environments. With IPStor, IT managers can build a new storage network or build intelligence into their current infrastructure. IPStor takes the complexity and expense out of storage networking and management and maximizes the availability and recoverability of data for all of your business-critical applications. Build a new storage network or build intelligence into your current one For the most effective management of mission-critical data possible, IPStor software provides an intelligent open infrastructure platform on top of standard server and storage hardware to...
Build a robust new Fibre Channel- or IP-based SAN and/or NAS environment
Upgrade an existing SAN - Add intelligence with enterprise class storage services and expand its functionality with NASIPStor's flexible design offers unprecedented freedom when architecting networked storage environments. You can pool your storage resources or choose IPStor's Storage Service Enabler option to add enterprise class storage services to new or existing SANs without copying and virtualizing existing data. Either way, your storage network will profit from centralized, simplified management and the benefits of IPStor's advanced storage services. Enterprise Class Storage Services…at your fingertips Storage services are the “killer-apps” of storage networking. Without them, a SAN simply cannot deliver its potential. The best place to deliver storage services is at the network level, for maximum return on investment (ROI) and lowest possible total cost of ownership (TCO). IPStor provides your enterprise applications with the widest array of the most advanced storage services – so that your mission-critical data is always available, quickly accessible, and easily recoverable with point-in-time integrity in the event of anything from small mishaps to major disasters. And FalconStor’s software builds intelligence into the network by putting IPStor storage services seamlessly into the network for maximum efficacy and efficiency. IPStor Storage Services for Capacity and Data Management, Data Availability, Data Recovery, Performance Enhancement
HyperTrac Backup Accelerator
Zero-Impact Backup/Restore Enabler
TimeMark/TimeView®
Mirroring
Active-Active Failover
Replication
HotZone®
Snapshot Copy
FileSafe
DynaPath®
SafeCache
Capacity-On-Demand
Database-Aware Snapshot Agents
Virtualization
Storage Service Enabler
MultiPathingThe Comprehensive Solution for All Your Storage Challenges Unlike everything else on the market, IPStor software is not an isolated point solution. Rather, it is the engine for a comprehensive array of storage networking solutions, providing both the open infrastructure platform and the tools – enterprise class storage services – to solve all your storage networking challenges, whatever your application, whatever your business. Basic IPStor Configuration IPStor’s open SAN/NAS infrastructure platform and its wide range of storage services can be combined in any number of configurations to solve the storage challenges facing enterprises of all sizes. In the following example - a high availability configuration with heterogeneous storage pooling - IPStor is installed in conjunction with several of FalconStor's other products, including NIC Express and FileSafe.


http://www.falconstor.com/en/solutions/?pg=Products&sb=IPStorEnterprise&CFID=1558393&CFTOKEN=65407637

Labels:


Sunday, May 13, 2007

If you have to face many many works, what you want to do

There are so many works wait me to finish.

First. NetWare Platform
Second. Windows Platform
Third. Linux Platform

And I need focus on one, so I can get more time to finish other task.

Good Luck.

Labels: ,


This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]

Scrape It
Free Hit Counters
Scrape It