Furnaces with controlled atmosphere