calculate link interaction in threads