thrift demo with multithread