Self-Assembly of Macromolecular Threaded Systems