Arsip: threading in n-tier

more 12 years ago
simple_code
@ simbah simbah....
daku ada cerita, ku bangun aplikasi 3-tier yang didalamnya ada beberapa transaksi dengan multi threading.
nah, ketika aku jalanin, kok error ya..?? Error Reading Socket gitu katanya...
trus satu lagi, dengan Borland Socket Server, menggunakan port 211. aplikasiku dipake oleh 7 unit yang tersebar di berbagai kota. dimasing masing unit ada beberapa [6-10] user. koneksi menggunakan Fiber Optic, dengan private network.
apakah akan berpengaruh jika hanya menggunakan 1 port (211) aja..??
thx u...

more 12 years ago
DelphiExpert
Error Reading SocketError disisi server (aplikasi anda)? lakukan ujicoba lagi deh utk library listener socket & client sockets handler, cek apa menjumpai masalah yg sama (aplikasi biasa)... kemudian kalo tidak ada masalah simulasikan dng beberapa thread.
apakah akan berpengaruh jika hanya menggunakan 1 port (211) aja..??Tidak pengaruh.

more 12 years ago
madi
Error Reading Socket gitu katanya...Thread Caching size udah diubah lom. standarnya 10 itu untuk 10 client. mo lebih tambahi lagi.

more 12 years ago
simple_code
error memang terjadi saat di multi-thread nya, kalu aplikasi itu single thread, ga ada masalah.
ketika aku meng-create sebuah thread baru, apa aku harus buat socket connection pas runtime seperti yang aku lakukan sekarang??
boleh donk di jelasin juga "behaviour" atawa sepak terjang dari Borland Socket Server jika di aplikasikan dengan multi thread seperti punyaku...

more 12 years ago
simple_code
oia... satu lagi :
berapa sih nilai maksimal Caching size untuk borland socket server nya..??

more 12 years ago
madi
aku bikin koq gak pernah error bro, mo threadnya seratus juga bisa aja (kuat2an servernya aja).
apa aku harus buat socket connection pas runtime seperti yang aku lakukan sekarang??maksudnya apa? bukankah semua client, socket connectionnya harus diopen tiap terjadi koneksi.
boleh donk di jelasin juga "behaviour" atawa sepak terjang dari Borland Socket Server jika di aplikasikan dengan multi thread seperti punyakulha punya kmu lom jelas koq. Threading Model Apartment apa tidak, Instancingnya Multiple Instance tidak...
berapa sih nilai maksimal Caching size untuk borland socket server nya..??
@Delphi Help: Specifies the maximum number of threads that can be reused for new client connections. property ThreadCacheSize: Integer; Description When ServerType is stThreadBlocking, each new connection that is accepted by the server socket is given a separate execution thread. In order to improve performance, server sockets store these threads in a cache rather than freeing them when the connection is closed. New connections can then reuse threads from the cache, rather than requiring the socket server to create a new thread every time a connection is accepted. Set ThreadCacheSize to specify the number of threads that are cached for reuse. The ideal value for ThreadCacheSize depends on the number and frequency of client socket requests received by the server socket. If ThreadCacheSize is too low, the server socket will spend more time freeing and creating threads when client connections are accepted. If ThreadCacheSize is too high, the server socket may unnecessarily lock up the memory for threads that are never reused.
more ...
- Pages:
- 1
reply |
Report Obsolete
Last Articles
- Project Group dalam Lazarus
- FastPlaz Database Explorer
- Release: FastPlaz Super Mom v0.12.22
- PascalClass #3: Web Development with Free Pascal
- Makna Pascal di Pascal Indonesia
- Kulgram : Instalasi Lazarus di Perangkat Berbasis ARM
- PascalClass #1: Analisa Database dan Machine Learning
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
- Mengenal OXYGENE – Pascal For .NET
- PascalTalk #5: UX: Research, Design and Engineer
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 3 months ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 3 months ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 months ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 months ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 1 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 8 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 8 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 8 years ago
Random Topic
- gmn caranya nyalain LED lewat PC
by adhiet_cool7 in Enginering more 13 years ago - Membuat sebuah file dengan ukuran tertentu
by frozenade in Network, Files, I/O & System more 13 years ago - delphi RS 232, dan mikronya ko nyendat..
by w4rek in Enginering more 13 years ago - Baca Primary key di mysql pakai Ado object
by ho2sly in MySQL more 13 years ago - Membaca isi file txt/csv berdasarkan baris dan pemisah koma
by bejool in Tip n Trik Pemrograman more 11 years ago - Gimana caranya 1 report ada 2 detail (quickreport) ?
by vikraa in Reporting more 13 years ago - Desain tabel utk Histori Absensi
by onsir in Lain-lain more 12 years ago - getfileinfo
by Indr@ in Tip n Trik Pemrograman more 10 years ago - fingerprint
by gita in Hal umum tentang Pascal Indonesia more 12 years ago - XP Manifest in Delphi
by Manz in Enginering more 14 years ago