thread environment through analyser and compiler