Because I live in Thailand, I have a little bit of knowledge about silk making. Below is some information to answering your question gathered from the internet. Please notice how the "sticky glue" is taken out of the silk. Also, almost all silk is a little yellow in color when it is raw yarn. It is bleached with a concentrated solution of Hydrogen Peroxide.
Silkworms possess a pair of specially modified salivary glands called sericteries, which are used for the production of fibroin – a clear, viscous, proteinaceous fluid that is forced through openings called spinnerets on the mouthpart of the larva.
Liquid secretions from the two large glands in the insect emerge from the spinneret, a single exit tube in the head. The diameter of the spinneret determines the thickness of the silk thread, which is produced as a long, continuous filament. The secretions harden on exposure to the air and form twin filaments composed of fibroin, a protein material. A second pair of glands secretes a gummy binding fluid called sericin which bonds the two filaments together.
Steadily over the next four days, the silkworm rotates its body in a figure-8 movement some 300,000 times, constructing a co and producing about a kilometer of silk filament.
At this stage, the co is treated with hot air, steam, or boiling water. The silk is then unbound from the co by softening the sericin and then delicately and carefully unwinding, or 'reeling' the filaments from 4 - 8 cocoons at once, sometimes with a slight twist, to create a single strand.
As the sericin protects the silk fiber during processing, this is often left in until the yarn or even woven fabric stage. Raw silk is silk that still contains sericin. Once this is washed out (in soap and boiling water), the fabric is left soft, lustrous, and up to 30% lighter. The amount of usable silk in each co is small, and about 2500 silkworms are required to produce a pound of raw silk.
Types of Silk
Raw silk is twisted into a strand sufficiently strong for weaving or knitting. This process of creating the silk yarn is called “throwing,” and prevents the thread from splitting into its constituent fibers.
Four different types of silk thread may be produced from this procedure: crepe, tram, thrown singles, and organzine. Crepe is made by twisting individual threads of raw silk, doubling two or more of these together, and then twisting them again. Tram is made by twisting two or more threads in only one direction. Thrown singles are individual threads that are twisted in only one direction. Organzine is a thread made by giving the raw silk a preliminary twist in one direction and then twisting two of these threads together in the opposite direction.
In general, organzine thread is used for the warp threads of materials, tram threads for the weft or filling, crepe thread for weaving crinkly fabrics and a single thread for sheer fabrics.
Broken or waste filaments and damaged cocoons are retained, treated to remove the sericin, and combed. This is then processed into yarn, marketed as spun silk, which is inferior in character to the reeled product and much cheaper.