Arsip: threading in n-tier
                
                   more 17 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 17 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 17 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 17 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 17 years ago
                  
              simple_code
oia... satu lagi :
berapa sih nilai maksimal Caching size untuk borland socket server nya..??
                
                
                   more 17 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
                  
                AI Forward
            
🚀 We're thrilled to partner with Alibaba Cloud for "AI Forward - Alibaba Cloud Global Developer Summit 2025" in Jakarta! Join us and explore the future of AI. Register now: 
https://int.alibabacloud.com/m/1000400772/
#AlibabaCloud #DeveloperSummit #Jakarta #AIFORWARD
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 5 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 5 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 5 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 5 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 5 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 5 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 5 years ago - Archive
 - Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 13 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 13 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 13 years ago 
Random Topic
- Mikrokontroller + Delphi program
by Byanto in Enginering more 18 years ago - Ukuran Buffer optimal untuk pemrosesan file > 50 MB
by pebbie in Tip n Trik Pemrograman more 17 years ago - How To Baca Text di Yahoo Massenger
by bagusprasojo in Tip n Trik Pemrograman more 18 years ago - Block Setting IP Address
by awonk in Hal umum tentang Pascal Indonesia more 18 years ago - refresh per menit
by javaman in Hal umum tentang Pascal Indonesia more 18 years ago - [ask] tentang datetimepicker??
by gold3n_b0y in Hal umum tentang Pascal Indonesia more 18 years ago - form nutup sendiri kayak screen saver
by mbahdien in Tip n Trik Pemrograman more 18 years ago - Baca Port serial
by botrew in Network, Files, I/O & System more 19 years ago - tolongin donk ada yang punya saran ga????
by alvonz in Hal umum tentang Pascal Indonesia more 16 years ago - Tanya Lagi Perhitungan sub report di Crystal Report
by onsir in MySQL more 18 years ago