摘要:
The web is undergoing a transformation into a fully fledged application platform. Meanwhile, the importance of leveraging available hardware capabilities, such as parallelism, is increasing. The web provides some facilities for parallelism and multithreading, but these seem to have low adoption in typical web software *** thesis conducted a case study on parallelism and multithreading in a meteorological JavaScript web application. The aim was to study the disparity between the perceived need and lacking adoption of parallelism and multithreading on the web. More precisely, the areas of interest were the size of possible performance improvements, how often the techniques are applicable, and factors that hinder the adoption of the techniques. The research was conducted in two parts. The first part used proof-of-concept implementations that attempted to leverage parallelism and multithreading in the application's performance bottlenecks. The second part used a survey to map out developers' views on the techniques.A number of performance bottlenecks were found in the application, and three proof-of-concept solutions were created for them. Parallelism and multithreading were found to be only situationally applicable in the application. In suitable cases, performance improvements of varying amount were achieved. However, architectural problems and other restrictions were found in the enabling technologies. Developers were somewhat unfamiliar with the newer enabling technologies but showed a generally positive sentiment towards the topic. Support was shown for abstracting lower level details away from ***, the limitations of the enabling technologies may steer developers towards other solution patterns. In the future, incremental improvements and greater awareness of the technologies may increase their adoption. Internal use of parallelism and multithreading in an application framework may prove particularly beneficial.