木曜日, 9月 29, 2011

The merit of using C#

The code library in C#, comprised of classes that abstract and encapsulate such notions such as instruction set, font data, model number etc. What is good at this library is it runs threads and the 'server' takes commands and send them for number of times until they are passed to the module. Namely, the commands is queue until the event is processed.

A server is also called daemon that runs as a separate process along with the main procedure.

A queue is a FIFO that stack data for processing when the resources are available.

An event is a chunk of data that will be passed to the queue which contains the necessary data for each transaction.

Abstraction is a process that parameterize any variables that can be applied to same sort of procedure.

Encapsulation is a process to separate a set of data from direct manipulation so that any modification to the data will be monitored.

A thread is a process that can be processed pseudo simultaneously. The processor process each thread one at a time so it is pseudo-simultaneous.

With this library, commands are passed to the module in a safer and more secure manner. The server can wait, for sending data and receiving the data at the same time while queuing other data as well.

Qt: 外部プログラムを起動する

  Qt/C++ のアプリは、外部へ直接アクセスできます。これはネットアプリでは不可能な Qt のメリットです。 外部プログラムを起動することもできます。QProcess::startDetached() を使うと独立したプロセスを立ち上げることができます。 この QProces...