Hi, I have a question regarding how the sms server runs. Looking at the code it seems that main thread sleeps every 1000ms and both outboundpolling thread and inboundpolling threads have their own sleep times too. I was wondering why the polling type of thread execution was chosen? Any specific reason? I mean that wouldn't it be more efficient if the threads would block when there is no smss in a queue and when a sms arrives to a queue the respective thread is waken up (e.g. like producer-consumer pattern)?
Also, I have another question. I am interested in building a socket- based GUI client to the sms server. Is the method: void org.smslib.smsserver.SMSServer.run() a proper place to add / initialize the server-side socket code? A descriptive picture (or text) containing the threading model of the sms server could be interesting to many of the SMSLib users - and especially for me now :) Thanks! -- You received this message because you are subscribed to the Google Groups "SMSLib Discussion Group" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/smslib?hl=en.
